Rykian / clockwork

A scheduler process to replace cron.
MIT License
544 stars 66 forks source link

Send the job as a parameter to handle_error #76

Closed rafaeelaudibert closed 2 years ago

rafaeelaudibert commented 2 years ago

In our use case, we want to be able to know which job failed, besides that, an error happened. To support it, we are now also sending the @job instance variable to the handle_error block.

rafaeelaudibert commented 2 years ago

Actually, https://github.com/Rykian/clockwork/pull/60 already does it. I'll let us use their implementation because it's simpler and it's been there for a while now.