lib/right_chimp/queue/ExecutionGroup.rb in right_chimp-1.1.1 vs lib/right_chimp/queue/ExecutionGroup.rb in right_chimp-1.1.2
- old
+ new
@@ -195,9 +195,21 @@
requeue(job.job_id)
end
end
#
+ # Queue a held job by id
+ #
+ def queue(id)
+ Log.debug "Requeuing job id #{id}"
+ job = @jobs_by_id[id]
+ job.owner = nil
+ job.time_start = Time.now
+ job.time_end = nil
+ job.status = Executor::STATUS_NONE
+ end
+
+ #
# Requeue a job by id
#
def requeue(id)
Log.debug "Requeuing job id #{id}"
job = @jobs_by_id[id]