class Utils::ProbeServer

def job_repeat(job_id = @history.last)

Returns:
  • (TrueClass, FalseClass) - true if the job was found and re-enqueued,

Parameters:
  • job_id (Integer, Utils::ProcessJob) -- the identifier of the job to repeat
def job_repeat(job_id = @history.last)
  ProcessJob === job_id and job_id = job_id.id
  if old_job = @history.find { |job| job.id == job_id }
    job_enqueue old_job.args
    true
  else
    false
  end
end