bbangert / retools

Redis Tools
MIT License
138 stars 41 forks source link

job_aborting+ed event #16

Open tarekziade opened 11 years ago

tarekziade commented 11 years ago

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:

What do you think ?

bbangert commented 11 years ago

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 commented 11 years ago

sounds good