Currently there is no way to handle a job timeout from within the task it's self, for jobs where timeouts are acceptable but need to cleanup, @sylvinus suggested we add event handlers for the on_retry, on_exception and on_timeout exceptions.
Just starting a discussion on the design/implementation of the event handlers :)
on_retry(self, exception)
on_exception(self, exception)
on_timeout(self)
and perhaps
on_success(self)?
Currently there is no way to handle a job timeout from within the task it's self, for jobs where timeouts are acceptable but need to cleanup, @sylvinus suggested we add event handlers for the on_retry, on_exception and on_timeout exceptions.
Just starting a discussion on the design/implementation of the event handlers :)
on_retry(self, exception)
on_exception(self, exception)
on_timeout(self)
and perhaps
on_success(self)?