Sha256: 9ecece3a408541e6206d67e9373c9db21b388ba4360bbf26ba4376cfb1263497

Contents?: true

Size: 382 Bytes

Versions: 2

Compression:

Stored size: 382 Bytes

Contents

require 'resque/failure/base'

module YogiBerra
  class Resque < Resque::Failure::Base
    def self.count
      Stat[:failed]
    end

    def save
      data = {
        :queue  => queue,
        :worker => worker.to_s,
        :args   => payload["args"],
        :class  => payload["class"].to_s
      }

      YogiBerra.exceptionize(exception, :resque => data)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yogi_berra-0.2.1 lib/yogi_berra/resque.rb
yogi_berra-0.2.0 lib/yogi_berra/resque.rb