jobs: add Excon::Error::Socket to the list of transient errors

In ActiveStorage::Purge job we see a lot of SSL errors:

> Connection reset by peer - SSL_connect (Errno::ECONNRESET)

These errors seem transient, and resolve themselves after a while.
This commit is contained in:
Pierre de La Morinerie 2021-05-04 08:57:33 +02:00
parent 4eadf48040
commit 13d2364fd5

View file

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