Class: GovernorBackground::Resque::PerformerWithState

Inherits:
Resque::JobWithStatus
  • Object
show all
Defined in:
lib/governor_background/resque/performer_with_state.rb

Overview

Used when the resque-status gem has been installed.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.queueObject



6
7
8
# File 'lib/governor_background/resque/performer_with_state.rb', line 6

def self.queue
  :governor
end

Instance Method Details

#performObject



10
11
12
13
14
# File 'lib/governor_background/resque/performer_with_state.rb', line 10

def perform
  job_name = options['job_name']
  arguments = options['arguments']
  GovernorBackground.retrieve(job_name).call(*arguments)
end