Skip to content

Commit

Permalink
Add debug log for global concurrency limit wait (#16077)
Browse files Browse the repository at this point in the history
Co-authored-by: nate nowack <[email protected]>
  • Loading branch information
EmilRex and zzstoatzz authored Nov 21, 2024
1 parent 59455b6 commit d296aa2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/prefect/concurrency/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ async def acquire_slots(
if max_retries is not None and max_retries <= 0:
raise exc
retry_after = float(exc.response.headers["Retry-After"])
logger.debug(
f"Unable to acquire concurrency slot. Retrying in {retry_after} second(s)."
)
await asyncio.sleep(retry_after)
if max_retries is not None:
max_retries -= 1
Expand Down

0 comments on commit d296aa2

Please sign in to comment.