[web2py] Re: Questions on the scheduler

2012-04-12 Thread Francisco G. T. Ribeiro
Thank you for your answer. I am not very interested in importing more dependencies even though I know those projects you mention are great (I really like Erlang..). Anyway you gave me an idea that could solve it. Implement a "messaging system" in web2py by keeping a table with those contents as

[web2py] Re: Questions on the scheduler

2012-04-12 Thread Wikus van de Merwe
If all what you need is to report th task progress, you could periodically write the amount of work done to db from within the task. Then query db asynchronously with ajax to show it to the user. This could be done by extending the "scheduler_run" table. I'm not sure if there is a way to stop a

[web2py] Re: Questions on the scheduler

2012-04-12 Thread blackthorne
Sorry to rehash this topic, this is critical to me and eventually to you. Scheduler in web2py works great. What I need is to access the workers asynchronously and invoke methods on it so that I can pause/resume/abort them and check on its level of progress. Any ideas on this? Thank you On Sat

[web2py] Re: Questions on the scheduler

2012-02-11 Thread Massimo Di Pierro
You can db(db.scheduler_run.status=='FAILED').update(status='QUEUED') and they will run again. On Feb 11, 4:58 pm, Brian M wrote: > Viniciusban - if a scheduler task fails or times out then no it will not be > run again unless you change the status back to queued. Guess it is good > because i

Re: [web2py] Re: Questions on the scheduler

2012-02-11 Thread Brian M
Viniciusban - if a scheduler task fails or times out then no it will not be run again unless you change the status back to queued. Guess it is good because it makes you handle possible errors and prevents runaway tasks, but rather annoying during testing since you must reenable after errors or i

[web2py] Re: Questions on the scheduler

2012-02-11 Thread blackthorne
Vinicius: I don't think so, it will be stored in db.scheduler_run with status = 'FAILED' On Feb 10, 5:48 pm, Vinicius Assef wrote: > Yet on schedules, if my task failed or timed out, will web2py try to > run it next time? > > On Fri, Feb 10, 2012 at 3:39 PM, Massimo Di Pierro > > > > > > > > wro

[web2py] Re: Questions on the scheduler

2012-02-11 Thread blackthorne
Massimo: For instance, I created a method that returns the progress of the task that I am running I guess my questions could collapse into this example: Consider, in a db file def plugin_run(plugin, **kw): plugin_obj = load_plugin(plugin, **kw) plugin_obj.start() return plugin_obj.rep

Re: [web2py] Re: Questions on the scheduler

2012-02-10 Thread Vinicius Assef
Yet on schedules, if my task failed or timed out, will web2py try to run it next time? On Fri, Feb 10, 2012 at 3:39 PM, Massimo Di Pierro wrote: > Not sure I understand. You do not call scheduled_workers functions. > You schedule tasks. Workers pick them up from queue an execute them > using th

[web2py] Re: Questions on the scheduler

2012-02-10 Thread Massimo Di Pierro
Not sure I understand. You do not call scheduled_workers functions. You schedule tasks. Workers pick them up from queue an execute them using the available power. On Feb 10, 4:54 am, blackthorne wrote: > - Is it possible to call scheduled_workers functions asynchronously? > How? > - How should I