lib/rocket_job/plugins/retry.rb in rocketjob-3.1.0 vs lib/rocket_job/plugins/retry.rb in rocketjob-3.2.0
- old
+ new
@@ -47,10 +47,10 @@
included do
after_fail :rocket_job_retry
# Maximum number of times to retry this job
# 25 is approximately 3 weeks of retries
- field :max_retries, type: Integer, default: 25, class_attribute: true, user_editable: true
+ field :max_retries, type: Integer, default: 25, class_attribute: true, user_editable: true, copy_on_restart: true
# List of times when this job failed
field :failed_times, type: Array, default: []
validates_presence_of :max_retries