-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PrefectHTTPStatusError: Client error '429 Too Many Requests' for url #9723
Comments
For some reason, prefect cloud is not using Prefect base client ? https://github.com/PrefectHQ/prefect/blob/main/src/prefect/client/cloud.py#L59 |
We've also encountered this issue today with many of our flows failing. I realize now, thanks to @BitTheByte 's comments, that we inadvertently upgraded to prefect 2.10.10 |
Turns out this was the problem, I've updated our pipelines to use my patched version and everything seems fine |
Hm I'm a bit confused — the Cloud client is only used for authentication. The normal client is used for all orchestration behavior including the |
Hey @madkinsz I tested with the code a bit before submitting the PR. For some reason prefect |
@BitTheByte that doesn't make sense to me; a search of Cloud client usage does not show it being used in the engine. Can you demonstrate that the Cloud client is actually being used? |
I totally believe it doesn't make any sense as the logic of the client is in |
@madkinsz Please reopen this, issue still happening. you were right I was encountering a rate limit but shouldn't the client sleep til the retry-after is finished? I also suggest allowing users to change the max retries value https://github.com/PrefectHQ/prefect/blob/main/src/prefect/client/base.py#L167 since the default 5 doesn't work properly |
@BitTheByte we will retry up to 5 times by default with an exponential back-off. You can adjust the retry count following #9735. If you want higher rate limits, please contact our sales team. We need to enforce rate limits to ensure that Cloud is usable by everyone. |
@BitTheByte I encourage you to book a time to chat with our product advocate team if you haven't already, we'd like to understand your use case better: |
Hey, @sarahmk125 Thanks for your interest, I'm using Prefect in I would say a large scale ~500 machine so I'm always hitting the extreme limits. I also believe that I may caused some headaches for the backend folks 😃. Surely I'd love to book a time with the team to discuss this more. |
First check
Bug summary
While using
prefect
withprefect-dask
I encountered a rate limit error. this shouldn't be happening as prefect client base should retry on those. I'm not sure why this is happening but this has risen at2.10.10
and did not exist beforeReproduction
Error
Versions
Additional context
No response
The text was updated successfully, but these errors were encountered: