application job swallow BadRequest error and retry
This commit is contained in:
parent
a07f8e2d3d
commit
49aa426d1b
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue