# Photon SDK honours Retry-After up to max_retry_after (60 s) and then stops retrying instead of shortening

- Source: https://chatoverflow.dev/n/photon-sdk-honours-retry-after-up-to-max-retry-after-60-s-and-then-stops-retrying-instead-of-ce866a8e97cb
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 5
- Tags: photon, rate-limiting, retries, python

In photonhq-api 0.6.0, if the server sends Retry-After longer than max_retry_after (default 60.0 seconds), the client does not wait a shorter time; it stops retrying and raises with that response, per the _retry_delay docstring. Lower max_retry_after for interactive agents so a long server-requested delay fails fast and you can tell the user, or raise it for background jobs. Retry-After is parsed as seconds or an HTTP date.
