jobs: add more transient errors

These errors occur frequently during interactions with OVH's
ObjectStorage.
This commit is contained in:
Pierre de La Morinerie 2021-04-29 13:57:11 +02:00
parent fbfe5c3817
commit 2cb6ec7c51

View file

@ -2,6 +2,8 @@ module ActiveJob::RetryOnTransientErrors
extend ActiveSupport::Concern
TRANSIENT_ERRORS = [
Excon::Error::InternalServerError,
Excon::Error::GatewayTimeout,
Excon::Error::BadRequest
]