Fix uninitialized excon constant

This commit is contained in:
simon lehericey 2020-09-08 18:36:24 +02:00
parent 18e42d1dee
commit 5459c2fa7f
2 changed files with 4 additions and 1 deletions

View file

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