Sha256: 66a94e2c239a1c5cb0e1bf5bac86bb4d8b05f4caaaee76006b2b54d0b27e09c9

Contents?: true

Size: 557 Bytes

Versions: 107

Compression:

Stored size: 557 Bytes

Contents

module Bugsnag
  module Delay
    class Resque
      @queue = "bugsnag"
      def self.perform(*args)
        Bugsnag::Notification.deliver_exception_payload_without_resque(*args)
      end
    end
  end
end

Bugsnag::Notification.class_eval do
  class << self
    def deliver_exception_payload_with_resque(*args)
      Resque.enqueue(Bugsnag::Delay::Resque, *args)
    end
  
    alias_method :deliver_exception_payload_without_resque, :deliver_exception_payload
    alias_method :deliver_exception_payload, :deliver_exception_payload_with_resque
  end
end

Version data entries

107 entries across 107 versions & 2 rubygems

Version Path
bugsnag-5.5.0 lib/bugsnag/delay/resque.rb
bugsnag-5.4.1 lib/bugsnag/delay/resque.rb
bugsnag-5.4.0 lib/bugsnag/delay/resque.rb
bugsnag-5.3.3 lib/bugsnag/delay/resque.rb
bugsnag-5.3.2 lib/bugsnag/delay/resque.rb
bugsnag-5.3.1 lib/bugsnag/delay/resque.rb
bugsnag-5.3.0 lib/bugsnag/delay/resque.rb
bugsnag-5.2.0 lib/bugsnag/delay/resque.rb
bugsnag-5.1.0 lib/bugsnag/delay/resque.rb
bugsnag-5.0.1 lib/bugsnag/delay/resque.rb
bugsnag-5.0.0 lib/bugsnag/delay/resque.rb
bugsnag-4.2.1 lib/bugsnag/delay/resque.rb
bugsnag-4.2.0 lib/bugsnag/delay/resque.rb
bugsnag-4.1.0 lib/bugsnag/delay/resque.rb
bugsnag-4.0.2 lib/bugsnag/delay/resque.rb
bugsnag-4.0.1 lib/bugsnag/delay/resque.rb
bugsnag-4.0.0 lib/bugsnag/delay/resque.rb
bugsnag-3.0.0 lib/bugsnag/delay/resque.rb
bugsnag-2.8.13 lib/bugsnag/delay/resque.rb
bugsnag-maglev--2.8.12 lib/bugsnag/delay/resque.rb