Skip to content

Task event handlers #28

Description

@eddie

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)?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions