hi,

After some debugging, I noticed that when tasks timeout while using the 
scheduler, I get an output as follows:
DEBUG:web2py.app.myapp:    new task report: FAILED
DEBUG:web2py.app.myapp:   traceback: Traceback (most recent call last):
  File "/../web2py/gluon/scheduler.py", line 303, in executor
    result = dumps(_function(*args, **vars))
  File "applications/myapp/models/db.py", line 337, in schedule_call
    time.sleep(3600)
  File "/.../web2py/gluon/scheduler.py", line 704, in <lambda>
    signal.signal(signal.SIGTERM, lambda signum, stack_frame: sys.exit(1))
SystemExit: 1

Whilst the timeout behaviour happens just as I expect it to be and things 
get stored correctly on the database (scheduler_run.status = 'TIMEOUT'), 
this debugging output is somewhat misleading since 'FAILED' seems to be an 
alternative state different than 'TIMEOUT' according to documentation 
( http://www.web2py.com/books/default/image/29/ce8edcc3.png ).

Can someone explain to me why this happens? Is it expectable? 

Thank you.
Kind regards,
Francisco

-- 
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.

Reply via email to