Also retry on HTTP statuses 502 and 504. (#947)

This commit is contained in:
Felix Fontein
2025-08-02 18:25:28 +02:00
committed by GitHub
parent dfff658f34
commit 75413d0b08
2 changed files with 5 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
bugfixes:
- "acme_* modules - also retry on HTTP responses 502 Bad Gateway and 504 Gateway Timeout. The latter is needed for ZeroSSL,
which seems to have a lot of 504s
(https://github.com/ansible-collections/community.crypto/issues/945, https://github.com/ansible-collections/community.crypto/pull/947)."

View File

@@ -64,7 +64,7 @@ if t.TYPE_CHECKING:
# -1 usually means connection problems
RETRY_STATUS_CODES = (-1, 408, 429, 503)
RETRY_STATUS_CODES = (-1, 408, 429, 502, 503, 504)
RETRY_COUNT = 10