Merge pull request #5551 from betagouv/fix_uninitialized_excon_constant

Fix uninitialized excon constant
This commit is contained in:
krichtof 2020-09-08 18:44:02 +02:00 committed by GitHub
commit 7038ca6c04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -1,7 +1,7 @@
class ApplicationJob < ActiveJob::Base
DEFAULT_MAX_ATTEMPTS_JOBS = 25
retry_on Excon::Error::BadRequest
retry_on ::Excon::Error::BadRequest
before_perform do |job|
Rails.logger.info("#{job.class.name} started at #{Time.zone.now}")

View file

@ -0,0 +1,3 @@
# needed as ApplicationJob retry on excon error
# and this lib is not explicity loaded by the Gemfile
require 'excon'