delayed_job icon indicating copy to clipboard operation
delayed_job copied to clipboard

`raise_signal_exceptions` setting per job

Open arifkalayci opened this issue 4 years ago • 1 comments

Is there a way define different raise_signal_exceptions per job? We find setting raise_signal_exceptions = :term very useful since we have long running jobs and they are subject to daily restarts on Heroku. But at the same time we have short jobs and it's a nightmare to handle the signal exception in each one of them separately. It's easier to just let them finish on their own. I see this setting is currently defined on the class level: https://github.com/collectiveidea/delayed_job/blob/master/lib/delayed/worker.rb#L61.

arifkalayci avatar Jun 15 '20 16:06 arifkalayci

With the way signal exceptions work, DJ does not have a good way to tell what job is running where the exception gets raised from.

albus522 avatar Jun 15 '20 18:06 albus522

Closing stale

albus522 avatar Jul 26 '24 19:07 albus522