Class: Resque::Plugins::MultiStepTask::AssureFinalization
- Inherits:
-
Object
- Object
- Resque::Plugins::MultiStepTask::AssureFinalization
- Defined in:
- lib/resque/plugins/multi_step_task/assure_finalization.rb
Overview
in the case that all normal jobs have completed before the job group is finalized, the job group will never receive the hook to enter finalizataion. To avoid this, an AssureFinalization job will be added to the queue for the sole purposed of initiating finalization for certain.
Class Method Summary collapse
Class Method Details
.perform(task_id) ⇒ Object
9 10 11 |
# File 'lib/resque/plugins/multi_step_task/assure_finalization.rb', line 9 def self.perform(task_id) MultiStepTask.find(task_id).maybe_finalize end |