lib/good_job/job.rb in good_job-1.2.6 vs lib/good_job/job.rb in good_job-1.3.0
- old
+ new
@@ -202,10 +202,10 @@
GoodJob::CurrentExecution.error_on_retry ||
GoodJob::CurrentExecution.error_on_discard
self.error = "#{job_error.class}: #{job_error.message}" if job_error
- if unhandled_error && GoodJob.reperform_jobs_on_standard_error
+ if unhandled_error && GoodJob.retry_on_unhandled_error
save!
elsif GoodJob.preserve_job_records == true || (unhandled_error && GoodJob.preserve_job_records == :on_unhandled_error)
self.finished_at = Time.current
save!
else