[web2py] Re: Catch errors in scheduler task

2015-03-23 Thread Niphlod
nope, but it would easy to have such system... a) you have a function def myfunc(): blablabla return 1 you wrap it on a try:except and send a notification def myfunc(): try: blablablabla return 1 except: mail.send(...) b) you code a "watcher" task t

[web2py] Re: Catch errors in scheduler task

2015-03-23 Thread flagist0
I want to be notified if error happens. So I'm wondering if scheduler has some callbacks which will be called if error occurs during task run. On Monday, March 23, 2015 at 6:21:38 PM UTC+3, Niphlod wrote: > > and the traceback is stored on the scheduler_run table. What do you need > exactly ? >

[web2py] Re: Catch errors in scheduler task

2015-03-23 Thread Niphlod
and the traceback is stored on the scheduler_run table. What do you need exactly ? On Monday, March 23, 2015 at 12:08:46 PM UTC+1, flagist0 wrote: > > Hello! > Is there any way to catch errors produced by scheduler task (create an > error ticket, send mail etc)? > Currently nothing happens if so