delayed_job
delayed_job copied to clipboard
Provide ability to add signals that may stop the job.
- Converted
raise_signal_exceptions
class attribute accessor toraise_exceptions_for_signals
. - This, by default will be a blank array that is similar to having
raise_signal_exceptions = false
. - Since there is a specific check for
:term
signal, change has been made to raise exception ifraise_exceptions_for_signals
array has the signal code. - Also, currently only
INT
andTERM
signals are considered. Added change to provide ability of adding more signals (like 'QUIT'), whose receipt can end the job. - Made sure that we have
INT
andTERM
signals always considered.
Coverage increased (+0.2%) to 91.324% when pulling 67c1e5320ec8c4c882b416bb77f61bac6e58453f on mohitnatoo:812-signal-handling into 401f43e076c25559ec65fdfa611a0d94b7b29eb1 on collectiveidea:master.
Coverage increased (+0.2%) to 91.324% when pulling 910e5bd984b8ebc030737a3881fd8439ea1b34d0 on mohitnatoo:812-signal-handling into 401f43e076c25559ec65fdfa611a0d94b7b29eb1 on collectiveidea:master.
Coverage increased (+0.2%) to 91.324% when pulling c4b52ae1864e1bf2e8a90c9be5837578d9b512de on mohitnatoo:812-signal-handling into 401f43e076c25559ec65fdfa611a0d94b7b29eb1 on collectiveidea:master.
@albus522 Any chance to merge this? Would be very helpful for as we'd like to react on QUIT
signals.