Hi,
We are using delayed job with a max retry of 5 after which the delayed job is marked as failed. When the job errors for the 5th time the exception is reported twice once in the injoke_job hook and once in the failure hook.
|
lifecycle.after(:failure) do |_, job, _, _| |
|
data = Rollbar::Delayed.build_job_data(job) |
|
::Rollbar.scope(:request => data).error(job.last_error, :use_exception_level_filters => true) if job.last_error |
Is there are way to disable error reporting on failed jobs, as this second report is not helpful to us?
Thanks
Rob