Class: GovernorBackground::Resque::PerformerWithState
- Inherits:
-
Resque::JobWithStatus
- Object
- Resque::JobWithStatus
- GovernorBackground::Resque::PerformerWithState
- 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
.queue ⇒ Object
6 7 8 |
# File 'lib/governor_background/resque/performer_with_state.rb', line 6 def self.queue :governor end |
Instance Method Details
#perform ⇒ Object
10 11 12 13 14 |
# File 'lib/governor_background/resque/performer_with_state.rb', line 10 def perform job_name = ['job_name'] arguments = ['arguments'] GovernorBackground.retrieve(job_name).call(*arguments) end |