It is already in web2py 2.2.1 ;-) On Sunday, 21 October 2012 14:06:53 UTC-5, Adi wrote: > > Confirming that it works PERFECT :) handling all three queues (groups) > concurrently as it should. > > now loading first 600k tasks to see if it will degrade performance, and if > ok, then couple more around 2-3M each... > > Niphlod and Massimo, thank you! > > When did you plan to include new scheduler into nightly or stable build? > > On Sun, Oct 21, 2012 at 2:07 PM, Adnan Smajlovic > <adnan.s...@gmail.com<javascript:> > > wrote: > >> will do it right now :) >> >> >> On Sun, Oct 21, 2012 at 10:30 AM, Niphlod <nip...@gmail.com <javascript:> >> > wrote: >> >>> a subtle bug appearead on the last patch, please re-download >>> scheduler.py, should all be ok right now (as of revision >>> 1cc2decfddb4ec2b9a2cd8e098754504856f1990) >>> >>> >>> On Sunday, October 21, 2012 4:10:07 AM UTC+2, Adi wrote: >>> >>>> hmm... seems like we still have the same problem, unless i was supposed >>>> to copy more files than just scheduler.py >>>> >>>> loaded around 12,000 records into slow_track, while fast_track has very >>>> few, but some should be executed by now... >>>> >>>> 3 workers are properly running (main, slow_track, fast_track), but no >>>> tasks are being executed at this point. restarted apache, stopped and >>>> started scheduler several times. >>>> >>>> that's the situation at this point... not sure if i could test >>>> something more specific to figure out what is going on? >>>> >>>> >>>> On Sat, Oct 20, 2012 at 9:05 PM, Adnan Smajlovic >>>> <adnan.s...@gmail.com>wrote: >>>> >>>>> will try to replacing scheduler.py in production and load some >>>>> serious data again, since all is setup there for the full process, so we >>>>> can have a real test :) >>>>> >>>>> I understand the concept with main being the default group, but wasn't >>>>> sure if I was doing something wrong. All clear now :) Thanks for fixing >>>>> it, >>>>> and will let you know results soon. >>>>> >>>>> >>>>> >>>>> On Sat, Oct 20, 2012 at 4:10 PM, Niphlod <nip...@gmail.com> wrote: >>>>> >>>>>> >>>>>> >>>>>>> The main group worker got created even though I didn't call it... >>>>>>> Not sure why, but i guess because there are lot of leftover tasks >>>>>>> queued >>>>>>> (500k) and some were assigned when I stopped the process. >>>>>>> >>>>>>> Remind that a group_name for tasks is required for the scheduler to >>>>>> work. >>>>>> However, the default value is 'main', so when you do >>>>>> db.scheduler_task.validate_**and_insert(function_name='**test') >>>>>> what is really happening is >>>>>> db.scheduler_task.validate_**and_insert(function_name='**test', >>>>>> group_name='main') >>>>>> >>>>>> If you start a scheduler with default values, it processes tasks with >>>>>> group_name = 'main', so when you do >>>>>> web2py.py -K crm >>>>>> what is really happening is >>>>>> web2py.py -K crm:main >>>>>> >>>>>> This is meant to avoid the hassle of group_name(ing) tasks for users >>>>>> that don't need different group_names but allow "power-users" (like you >>>>>> :P) >>>>>> with the added flexibility of having different ones. >>>>>> >>>>>> >>>> -- >>> >>> >>> >>> >> >> >> >> -- >> >> Thanks, >> Adnan >> >> video: http://vimeo.com/24653283 >> >> >> > > > -- > > Thanks, > Adnan > > video: http://vimeo.com/24653283 > > >
--