lib/right_chimp/exec/Executor.rb in right_chimp-1.0.9 vs lib/right_chimp/exec/Executor.rb in right_chimp-1.1.0
- old
+ new
@@ -9,10 +9,11 @@
:retry_count, :retry_sleep, :time_start, :time_end
attr_reader :error, :results
STATUS_NONE = :none
+ STATUS_HOLDING = :holding
STATUS_RUNNING = :running
STATUS_RETRYING = :retrying
STATUS_ERROR = :error
STATUS_DONE = :done
@@ -91,9 +92,11 @@
#
# Run a unit of work with retries
# This is called from the subclass with a code block to yield to
#
def run_with_retry(&block)
+ Log.debug "Running job '#{@job_id}' with status '#{@status}'"
+
@status = STATUS_RUNNING
@time_start = Time.now
Log.info self.describe_work_start unless @quiet
#