lib/resque/plugins/multi_step_task.rb
def add_finalization_job(job_type, *args)
        increment_finalize_job_count
        logger.debug("[Resque Multi-Step-Task] Adding #{job_type} finalization job for #{task_id} (args: #{args})")

        redis.rpush 'finalize_jobs', Yajl::Encoder.encode([job_type.to_s, *args])
      end
# Finalization jobs are performed after all the normal jobs
# (i.e. the ones registered with #add_job) have been completed.
# Finalization jobs are performed in the order they are defined.
#
# @param [Class,Module] job_type The type of job to be performed.
Finalization jobs are performed after all the normal jobs
have been completed.
Finalization jobs are performed in the order they are defined.
Finalization jobs are performed after all the normal jobs have been completed . Finalization jobs are performed in the order they are defined .
def add_finalization_job(job_type, *args)
        increment_finalize_job_count
        logger.debug("[Resque Multi-Step-Task] Adding #{job_type} finalization job for #{task_id} (args: #{args})")
        redis.rpush 'finalize_jobs', Yajl::Encoder.encode([job_type.to_s, *args])
      end
def add_finalization_job ( job_type , * args ) increment_finalize_job_count logger . debug ( "[Resque Multi-Step-Task] Adding #{job_type} finalization job for #{task_id} (args: #{args})" ) redis . rpush 'finalize_jobs' , Yajl :: Encoder . encode ( [ job_type . to_s , * args ] ) end
Finalization jobs are performed after all the normal jobs
(i.e.
Finalization jobs are performed after all the normal jobs ( i . e .
job_type
args
job_type The type of job to be performed.
job_type The type of job to be performed .