Aurélien Sibiril
92beb20dcc
Stop the retry backoff from outliving its deadline
...
A fetch runs under a 30-second per-source budget, but the retry transport
slept without reference to it, so backoff could convert a reportable
provider status into an opaque "context deadline exceeded".
Three changes. The final attempt no longer sleeps: nothing follows it, so
the wait only spent the caller's deadline to return a response already in
hand — up to a second per failed request, across sixteen drivers.
Retry-After is now honoured, in both the delta-seconds and HTTP-date
forms; ignoring it meant retrying a 429 after 250ms and earning another
429, spending the whole retry budget in under a second. And a wait is
skipped entirely when it exceeds the remaining deadline or a 5s cap,
because a retry that lands after the deadline cannot succeed — the
throttled response is surfaced instead so the caller reports what the
provider actually said.
The type moves from google_workspace.go to driver.go, which is where the
other shared driver machinery lives; sixteen drivers construct it and
none of them are Google Workspace. It had no tests, so it has them now.
Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com >
2026-07-26 09:22:05 +02:00
..
2026-07-26 09:22:05 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-26 09:22:05 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-26 09:22:05 +02:00
2026-07-26 09:22:05 +02:00
2026-07-13 16:21:14 +02:00
2026-07-26 09:22:05 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-26 09:22:05 +02:00
2026-07-26 09:22:05 +02:00
2026-07-13 16:21:14 +02:00
2026-07-26 09:22:05 +02:00
2026-07-13 16:21:14 +02:00
2026-07-22 17:27:55 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-22 17:27:55 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-26 09:22:04 +02:00
2026-07-26 09:22:04 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-26 09:22:05 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-22 22:44:41 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-26 09:22:05 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-26 09:22:05 +02:00
2026-07-26 09:22:05 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-22 17:27:55 +02:00
2026-07-22 17:27:55 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-26 09:22:05 +02:00
2026-07-26 09:22:05 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-22 17:27:55 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-26 09:22:04 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00
2026-07-13 16:21:14 +02:00