Merge pull request #6163 from betagouv/add-more-transient-error

Jobs : ajout de Excon::Error::Socket à la liste des erreurs ré-essayées automatiquement (#6163)
This commit is contained in:
Pierre de La Morinerie 2021-05-04 11:47:40 +02:00 committed by GitHub
commit ab2539dcea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,8 @@ module ActiveJob::RetryOnTransientErrors
TRANSIENT_ERRORS = [ TRANSIENT_ERRORS = [
Excon::Error::InternalServerError, Excon::Error::InternalServerError,
Excon::Error::GatewayTimeout, Excon::Error::GatewayTimeout,
Excon::Error::BadRequest Excon::Error::BadRequest,
Excon::Error::Socket
] ]
included do included do