Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Custom code after task failure/success #12

Closed
Miksus opened this issue Nov 14, 2021 · 1 comment
Closed

ENH: Custom code after task failure/success #12

Miksus opened this issue Nov 14, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@Miksus
Copy link
Owner

Miksus commented Nov 14, 2021

Is your feature request related to a problem? Please describe.
Allow running custom code after task failure/success.

Describe the solution you'd like
Possibly:

  • hooks hook_success, hook_failure etc.
  • Init params for the call backs, name suggestions
    • callback_fail, callback_success
    • fail_callback, success_callback
    • fail_cb, success_cb
    • cb_fail, cb_success
    • on_fail, on_success

Describe alternatives you've considered
Subclass and override process_success and process_failure.

@Miksus Miksus added the enhancement New feature or request label Nov 14, 2021
@Miksus
Copy link
Owner Author

Miksus commented Dec 15, 2021

This can be now done via Task.hook_execute.

@Miksus Miksus closed this as completed Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant