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

job_aborting+ed event #16

Open
tarekziade opened this issue Aug 17, 2012 · 2 comments
Open

job_aborting+ed event #16

tarekziade opened this issue Aug 17, 2012 · 2 comments

Comments

@tarekziade
Copy link
Contributor

When the worker receives a signal that makes it quit the current job, like SIGUSR1, we need to give a chance to the user to do something in its code.

I propose two events:

  • job_aborting - triggered at the beginning of kill_child() if there's a running job in the worker
  • job_aborted - triggered after kill_child()

What do you think ?

@bbangert
Copy link
Owner

Wouldn't a general shut-down event handle job_aborted? Or perhaps setting a variable during job_aborting that the on quit handler can see.

@tarekziade
Copy link
Contributor Author

sounds good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants