Class: Actions::Candlepin::AbstractAsyncTask
- Inherits:
-
Abstract
- Object
- Base
- Abstract
- Actions::Candlepin::AbstractAsyncTask
show all
- Includes:
- Base::Polling
- Defined in:
- app/lib/actions/candlepin/abstract_async_task.rb
Instance Method Summary
collapse
Instance Method Details
#humanized_state ⇒ Object
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'app/lib/actions/candlepin/abstract_async_task.rb', line 13
def humanized_state
case state
when :running
if self.external_task.nil?
_("initiating Candlepin task")
else
_("checking Candlepin task status")
end
when :suspended
_("waiting for Candlepin to finish the task")
else
super
end
end
|
#run(event = nil) ⇒ Object
6
7
8
9
10
11
|
# File 'app/lib/actions/candlepin/abstract_async_task.rb', line 6
def run(event = nil)
unless event == Dynflow::Action::Skip
super
end
end
|