Skip to content

Instantly share code, notes, and snippets.

Tim Diggins timdiggins

Block or report user

Report or block timdiggins

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@timdiggins
timdiggins / delayedjob-bugsnag.rb
Last active Aug 29, 2015 — forked from loopj/delayedjob-bugsnag.rb
notify bugsnag when delayed job errors occur
View delayedjob-bugsnag.rb
# some references which helped
# http://blog.salsify.com/engineering/delayed-jobs-callbacks-and-hooks-in-rails
# http://stackoverflow.com/a/16639849/109175
# example plugin: https://github.com/collectiveidea/delayed_job/blob/master/lib/delayed/plugins/clear_locks.rb
module Delayed
module Plugins
class Bugsnag < Plugin
callbacks do |lifecycle|
lifecycle.around(:invoke_job) do |job, &block|
begin
You can’t perform that action at this time.