Sha256: c317d7921b43cc544eb0f22ea5adf32700fd0bca55dfd471a69ef526ffa0cc40
Contents?: true
Size: 512 Bytes
Versions: 1
Compression:
Stored size: 512 Bytes
Contents
# frozen_string_literal: true require "resque/failure/base" module ExceptionNotification class Resque < Resque::Failure::Base def self.count ::Resque::Stat[:failed] end def save data = { error_class: exception.class.name, error_message: exception.message, failed_at: Time.now.to_s, payload: payload, queue: queue, worker: worker.to_s } ExceptionNotifier.notify_exception(exception, data: {resque: data}) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
exception-track-1.3.0 | lib/exception_notification/resque.rb |