Skip to content

Commit

Permalink
FT-842: Enabled the use of Retry-After header value for handling ra…
Browse files Browse the repository at this point in the history
…te-limit retries
  • Loading branch information
Aryamanz29 committed Dec 26, 2024
1 parent 61ab5e5 commit 54dbe59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyatlan/client/atlan.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ def get_adapter() -> logging.LoggerAdapter:
status_forcelist=[403, 429, 500, 502, 503, 504],
allowed_methods=["HEAD", "GET", "OPTIONS", "POST", "PUT", "DELETE"],
raise_on_status=False,
# When response.status is in `status_forcelist`
# and the "Retry-After" header is present, the retry mechanism
# will use the header's value to delay the next API call.
respect_retry_after_header=True,
)

VERSION = read_text("pyatlan", "version.txt").strip()
Expand Down

0 comments on commit 54dbe59

Please sign in to comment.