lib/resque/plugins/multi_step_task.rb
# Add a job to this task
#
# @param [Class,Module] job_type The type of the job to be performed.
Add a job to this task
Add a job to this task
def add_job(job_type, *args)
        increment_normal_job_count
        logger.debug("[Resque Multi-Step-Task] Adding #{job_type} job for #{task_id} (args: #{args})")
        if synchronous?
          self.class.perform(task_id, job_type.to_s, *args)
        else
          Resque::Job.create(queue_name, self.class, task_id, job_type.to_s, *args)
        end
      end
def add_job ( job_type , * args ) increment_normal_job_count logger . debug ( "[Resque Multi-Step-Task] Adding #{job_type} job for #{task_id} (args: #{args})" ) if synchronous? self . class . perform ( task_id , job_type . to_s , * args ) else Resque :: Job . create ( queue_name , self . class , task_id , job_type . to_s , * args ) end end
Add a job to this task
Add a job to this task
job_type
args
job_type The type of the job to be performed.
job_type The type of the job to be performed .