Il giorno giovedì 3 ottobre 2013 08:19:48 UTC+2, Andrew W ha scritto: > > Hi Niphlod, > If I could add to the questions (I'm having some success with the > scheduler but there's a few gaps in my understanding): > What process removes the rows from the scheduler_worker table ? > Does it make any difference to Kill a worker by updating it's status or by > just Ctl-C (Or closing the window in Windows) to stop the task ? > > ctrl+c means killing from outside. setting to KILL means killing (still abruptly) but within inside the process. YMMV but I assume it's always best to avoid ctrl+c in production :D
> I have one worker row with a status of KILL. The scheduler worker process > has stopped correctly. Does there need to be at least one active worker > to clean up this table ? Will this row be removed when I restart a worker > instance? > > yes. all workers do a cleanup at the start and every once in a while > What happens when I have several Assigned Tasks, but the worker to which > they are assigned is Killed ? Will they be reassigned automatically ? > yes. > > Does KILLing a worker terminate the task that the worker is running as > well as the specific worker instance ? I expect so but to be clear there > are two things running - the worker instance, and the specific task that > the worker has initiated. Some of the wording talks about the worker > task, but is that referring to both or just one of these two processes ? > when you KILL a worker, the task gets terminated abruptly and the worker exits as soon as the task process has been shut down > > Probably just a general web2py question, but I have a menu item that calls > a controller which runs " scheduler.queue_task(...." . Unfortunately I get > two rows inserted into scheduler_task and i can't work out why. The > controller appears to be called twice. > log a line before calling queue_task. then it's just a matter to see where the request comes from :D > > Thanks > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.