On Wednesday, November 22, 2017 at 9:25:31 AM UTC-8, mweissen wrote: > > Two questions: > > (1) Under some conditions (email send not successfully) I want to force > an other try after some minutes. Would it be a good idea to raise an > Exception? > > Who would be raising the exception?
> (2) Let's say scheduler_task.retry_failed is 5 and we are in the second > repetition. How can I get these number = 2? Is there any property of > scheduler like scheduler.number_of_try? > > Regards, Martin > > select retry_failed, times_run, times_failed, last_run_time from scheduler_task where times_failed != 0 ; Status should be 'FAILED' on those, as well. And all those values are in the Row object returned by task_status. Footnote: In the online book (as at web2py.com/books), the search function with the term "scheduler" finds -K option in the command line help list, but doesn't find the API discussion also in Chapter 4. I did get there by searching for "queue_task". I'm not familiar with the guts of the search function to know why this happens. /dps -- 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/d/optout.