Files
windmill/python-client/wmill/wmill
1c78f8d7a3 feat(python-client): retry a GET on 429 and 502-504 with exponential backoff (#12513)
* feat(python-client): retry a GET on 429 and 502-504 with exponential backoff

A script that reads many variables or resources at once can get a 429 or a
502/503/504 back from a busy server, and the call failed at once. Windmill.get
now retries up to 3 times, 1s, 2s and 4s apart, or after the Retry-After
seconds the server sends (capped at 60). Other statuses, and POSTs, are not
retried.

* fix(python-client): honour an HTTP-date Retry-After and test the 502/504 and 60s cap paths

* fix(python-client): never repeat the slack approval GET and bound GET retries to 15s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(python-client): fall back to the backoff delay on a Retry-After digit float() rejects

---------

Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 10:02:15 +01:00
..
2022-05-05 04:25:58 +02:00