- https://www.fieldnotes.space
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |