No this doesn't work for scheduler tasks. Note that scheduler task that
have errors do not produce an error ticket anyway. For scheduler tasks I
would inherit from scheduler and override set_worker_status to also do some
other action when it's setting it to FAILED.
--
Resources:
-
That is useful but is it really equivalent to error ticket issuance i.e. do
all tickets we see as error tickets hit the routes_onerror? What if the
error is triggered by a scheduled task running in the background?
Thanks
On Thursday, 15 February 2018 17:43:58 UTC, Leonel Câmara wrote:
>
> I'd
I'd say the easiest way would be to use routes_on_error, you can put a
controller function of your application there.
On you web2py directory you would make a routes.py with
routes_onerror = [
('myapp/*', '/myapp/default/error')
]
Then on default.py you could have a function like this:
3 matches
Mail list logo