All output is from the delayed job worker session using the code above.
Delayed::Job.enqueue Jobs::Test.new(raise: true, report_exception: false)
`Rollbar.report_exception` was run.
[Worker(host:station.local pid:75372)] Jobs::Test failed with RuntimeError: 💩 - 0 failed attempts
[Worker(host:station.local pid:75372)] `Delayed::Plugins::RollbarTest`: around(:error)
[Worker(host:station.local pid:75372)] `Delayed::Plugins::RollbarTest`: after(:error)
[Worker(host:station.local pid:75372)] 1 jobs processed at 2.4712 j/s, 1 failed ...
Delayed::Job.enqueue Jobs::Test.new(raise: true, report_exception: true)
`Rollbar.report_exception` was run.
`Rollbar.report_exception` was run.
[Worker(host:station.local pid:75372)] Jobs::Test failed with RuntimeError: 💩 - 0 failed attempts
[Worker(host:station.local pid:75372)] `Delayed::Plugins::RollbarTest`: around(:error)
[Worker(host:station.local pid:75372)] `Delayed::Plugins::RollbarTest`: after(:error)
[Worker(host:station.local pid:75372)] 1 jobs processed at 1.5048 j/s, 1 failed ...
Removed by adding Delayed::Worker.plugins.delete(Delayed::Plugins::Rollbar)
after the Rollbar.configure
block.
Delayed::Job.enqueue Jobs::Test.new(raise: true, report_exception: false)
[Worker(host:station.local pid:74421)] Jobs::Test failed with RuntimeError: 💩 - 0 failed attempts
[Worker(host:station.local pid:74421)] `Delayed::Plugins::RollbarTest`: around(:error)
[Worker(host:station.local pid:74421)] `Delayed::Plugins::RollbarTest`: after(:error)
[Worker(host:station.local pid:74421)] 1 jobs processed at 15.2446 j/s, 1 failed ...
Delayed::Job.enqueue Jobs::Test.new(raise: true, report_exception: true)
`Rollbar.report_exception` was run.
[Worker(host:station.local pid:75037)] Jobs::Test failed with RuntimeError: 💩 - 0 failed attempts
[Worker(host:station.local pid:75037)] `Delayed::Plugins::RollbarTest`: around(:error)
[Worker(host:station.local pid:75037)] `Delayed::Plugins::RollbarTest`: after(:error)
[Worker(host:station.local pid:75037)] 1 jobs processed at 2.2982 j/s, 1 failed ...
I forgot to mention that
failure
is only run after a batch of jobs where one of many could have failed.