Denver H
01/28/2025, 12:34 PMZach Angell
Does this show log and API limits?Currently the graph only shows API limits for flow/task run endpoints. If you share your account id I’m happy to check if you’re running into logging rate limits. We’re working on adding other limits to this chart.
What is the difference between usage and granted/requested?• Granted = # of requests successfully made under the rate limit, which should be equal to usage • Requested = # the number of requests made
Is this showing the pro limit of 2k even as a free user?That’s looking like a bug in our system I’ll track down. The free tier has a limit of 400.
If the graph shows a data point above the 400 limit with the state of granted, does that mean the limit is a soft limit as long as it is not overly higher than the tier allocated amount?In some cases we may allow traffic slightly in excess of the rate limit, but rate limits will become less “soft” going forward.
Denver H
01/28/2025, 4:14 PMZach Angell
Denver H
01/29/2025, 11:20 PMlog_prints=True
in the decorator but some tasks within did not have it as a decorator but it presumably inherited and set prints as a prefect log entry.
In any case, this might also explain a more significant issue I have been chasing down for weeks where I get sporadic QueueingSpanExporter - Failed to export batch: HTTPSConnectionPool(host='api.prefect.cloud', port=443): Read timed out. (read timeout=10)
Sometimes that is the extent of it whereas other times it makes the process hang for 15 mins exactly and then a db error is surfaced and the process continues.
I am now wondering if excessive logging results in some temporary ban which break the open prefect communication and/or leaves some db processes open/orphaned.
Been a real blocker and have gone down some deep rabbit holes trying to reproduce consistently and debug but this now seems more probableZach Angell
QueueingSpanExporter - Failed to export batch: HTTPSConnectionPool(host='api.prefect.cloud', port=443): Read timed out. (read timeout=10)
As you suggested, this error is likely caused by hitting rate limits and being unable to upload logs. It also may delay completion of a process because the prefect client will attempt to upload all logs before exiting a process.
I’m less sure about / haven’t seen the db error you’re referencing though. Happy to help debug if you can share a stack traceDenver H
01/30/2025, 2:31 PMZach Angell
httpx
client within the Python process is breaking somehow. Without an MRE it’s difficult to say thoughDenver H
01/30/2025, 7:27 PM