Sha256: 950e0b9b89dd1de5f8422630ca11586d4fa1dc4ad3b2ba90a0fae94a40205cf7
Contents?: true
Size: 602 Bytes
Versions: 7
Compression:
Stored size: 602 Bytes
Contents
# based on http://bit.ly/VGdfVI module Delayed module Plugins class Rollbar < Plugin callbacks do |lifecycle| lifecycle.around(:invoke_job) do |job, *args, &block| begin block.call(job, *args) rescue Exception => e if job.attempts >= ::Rollbar.configuration.dj_threshold data = ::Rollbar.configuration.report_dj_data ? job : nil ::Rollbar.report_exception(e, data) end raise e end end end end end end Delayed::Worker.plugins << Delayed::Plugins::Rollbar
Version data entries
7 entries across 7 versions & 1 rubygems