Class: Resque::Failure::Squash

Inherits:
Base
  • Object
show all
Defined in:
lib/resque/failure/squash.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:

  • (configuration)


16
17
18
19
20
# File 'lib/resque/failure/squash.rb', line 16

def self.configure
  configuration = {}
  yield configuration
  ::Squash::Ruby.configure configuration
end

Instance Method Details

#contextObject



8
9
10
11
12
13
14
# File 'lib/resque/failure/squash.rb', line 8

def context
  {
    :worker => worker,
    :queue => queue,
    :payload => payload
  }
end

#saveObject



4
5
6
# File 'lib/resque/failure/squash.rb', line 4

def save
  ::Squash::Ruby.notify exception, context
end