lib/rocket_job/job.rb in rocketjob-1.1.2 vs lib/rocket_job/job.rb in rocketjob-1.1.3
- old
+ new
@@ -63,11 +63,11 @@
# Symbol
# nil
# Regular Expression
#
# Note: Date is not supported, convert it to a UTC time
- key :arguments, Array, default: []
+ key :arguments, Array
# Whether to store the results from this job
key :collect_output, Boolean, default: false
# Raise or lower the log level when calling the job
@@ -380,9 +380,10 @@
self.failure_count += 1
end
def before_retry
self.completed_at = nil
+ self.exception = nil
end
def before_pause
self.completed_at = Time.now
self.worker_name = nil