Skip to content

Commit

Permalink
Merge pull request #454 from atlanhq/FT-842
Browse files Browse the repository at this point in the history
 FT-842: Enabled the use of `Retry-After` header value for handling rate-limit retries
  • Loading branch information
Aryamanz29 authored Dec 26, 2024
2 parents 61ab5e5 + 54dbe59 commit ce2274b
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 ce2274b

Please sign in to comment.