From f0783fbb41980d4183e6a4042e2a4f9ca40bfdb2 Mon Sep 17 00:00:00 2001 From: Sam Kaplan Date: Thu, 14 May 2026 13:00:33 -0500 Subject: [PATCH] 503's can also have Retry After header --- src/AzStorage.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AzStorage.jl b/src/AzStorage.jl index 3f83ec4..9d25f61 100644 --- a/src/AzStorage.jl +++ b/src/AzStorage.jl @@ -219,7 +219,7 @@ macro retry(retries, ex::Expr) maximum_backoff = 256 s = min(2.0^(i-1), maximum_backoff) + rand() found_retry_after = false - if status(e) == 429 + if status(e) ∈ (429, 503) j = findfirst(header->header[1] == "Retry-After", e.response.headers) if j !== nothing s = parse(Int, e.response.headers[j][2]) + rand()