Sha256: 7ae733345230959d0b57a0195bed378d5d8cd34135e50e6335cfe1a30c88186f

Contents?: true

Size: 526 Bytes

Versions: 17

Compression:

Stored size: 526 Bytes

Contents

require 'resque/failure/base'

module ExceptionNotification
  class Resque < Resque::Failure::Base

    def self.count
      Stat[:failed]
    end

    def save
      data = {
        :failed_at     => Time.now.to_s,
        :queue         => queue,
        :worker        => worker.to_s,
        :payload       => payload,
        :error_class   => exception.class.name,
        :error_message => exception.message
      }

      ExceptionNotifier.notify_exception(exception, :data => { :resque => data })
    end

  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
exception_notification-4.3.0 lib/exception_notification/resque.rb
exception_notification-4.2.2 lib/exception_notification/resque.rb
exception_notification-4.2.1 lib/exception_notification/resque.rb
exception_notification-4.2.0 lib/exception_notification/resque.rb
exception_notification-4.2.0.rc1 lib/exception_notification/resque.rb
exception_notification_more_info-1.0.1 lib/exception_notification/resque.rb
exception_notification_more_info-1.0.0 lib/exception_notification/resque.rb
exception_notification-4.1.4 lib/exception_notification/resque.rb
exception_notification-4.1.3 lib/exception_notification/resque.rb
exception_notification-4.1.2 lib/exception_notification/resque.rb
exception_notification-4.1.1 lib/exception_notification/resque.rb
exception_notification-4.1.0 lib/exception_notification/resque.rb
exception_notification-4.1.0.rc2 lib/exception_notification/resque.rb
exception_notification-4.1.0.rc1 lib/exception_notification/resque.rb
exception_notification-4.0.1 lib/exception_notification/resque.rb
exception_notification-4.0.0 lib/exception_notification/resque.rb
exception_notification-4.0.0.rc1 lib/exception_notification/resque.rb