Open mitchell-lawson opened 3 weeks ago
Hi @mitchell-lawson - thank you for the issue! This is really confusing, we will update.
In the meantime for your understanding: the default limit is a Prefect setting on your server / API that can be configured through PREFECT_API_DEFAULT_LIMIT
(which defaults to 200). Just remember that you need to set this setting on the server process, not the client process, in order for it to be picked up.
Bug summary
When interacting with the prefect client, documentation does not clarify that you must paginate via the offset parameter even when limit is set to None. The limit in reality is 200, even when set to None. Our environment has >2000 deployments and I ran the code below to find out this limit. This is present in all client functions that have the limit parameter.
Version info
Additional context
From the python docs:
There is no additional info in the online docs either.