diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb index 2dfbc497c..856d1d570 100644 --- a/app/jobs/application_job.rb +++ b/app/jobs/application_job.rb @@ -1,6 +1,8 @@ class ApplicationJob < ActiveJob::Base DEFAULT_MAX_ATTEMPTS_JOBS = 25 + retry_on Excon::Error::BadRequest + before_perform do |job| Rails.logger.info("#{job.class.name} started at #{Time.zone.now}") end