Class: Resque::ChainedJobWithStatus
- Inherits:
-
JobWithStatus
show all
- Defined in:
- lib/resque_ui/overrides/resque_status/chained_job_with_status.rb
Instance Attribute Summary
#worker
Class Method Summary
collapse
Instance Method Summary
collapse
#counter, #incr_counter, #initialize, #pause!, perform, #safe_perform!, #tick
Class Method Details
.enqueue(klass, options = {}) ⇒ Object
15
16
17
18
19
20
21
22
|
# File 'lib/resque_ui/overrides/resque_status/chained_job_with_status.rb', line 15
def self.enqueue(klass, options = {})
opts = HashWithIndifferentAccess.new(options)
raise ArgumentError, "You must supply a :uuid attribute in your call to create." unless opts['uuid']
uuid = opts['uuid']
Resque.enqueue(klass, uuid, options)
uuid
end
|
Instance Method Details
#completed(*messages) ⇒ Object
7
8
9
10
11
12
13
|
# File 'lib/resque_ui/overrides/resque_status/chained_job_with_status.rb', line 7
def completed(*messages)
super(*messages)
end
|
#name ⇒ Object
3
4
5
|
# File 'lib/resque_ui/overrides/resque_status/chained_job_with_status.rb', line 3
def name
status.name rescue nil
end
|