mondras
09/13/2024, 5:52 PMMarvin
09/13/2024, 5:53 PMNate
09/13/2024, 5:53 PMmondras
09/13/2024, 5:53 PMmondras
09/13/2024, 5:53 PMNate
09/13/2024, 5:53 PMNate
09/13/2024, 5:53 PMmondras
09/13/2024, 5:53 PMNate
09/13/2024, 5:54 PMmondras
09/13/2024, 5:57 PMmondras
09/13/2024, 5:59 PMmondras
09/13/2024, 5:59 PMmondras
09/13/2024, 6:00 PMmondras
09/13/2024, 6:01 PMNate
09/13/2024, 6:02 PMMarvin
09/13/2024, 6:02 PMNate
09/13/2024, 6:03 PMMarvin
09/13/2024, 6:03 PMbash
prefect gcl create my-concurrency-limit --limit 5 --slot-decay-per-second 1.0
### Inspecting a Concurrency Limit
bash
prefect gcl inspect my-concurrency-limit
### Updating a Concurrency Limit
bash
prefect gcl update my-concurrency-limit --limit 10
prefect gcl update my-concurrency-limit --disable
### Deleting a Concurrency Limit
bash
prefect gcl delete my-concurrency-limit
You can refer to the complete details in the Global Concurrency Limits guide.
This should help you manage the concurrency of your tasks and potentially mitigate the 503 errors you're encountering.mondras
09/13/2024, 6:04 PMChris Guidry
09/13/2024, 6:13 PMget_client()
?
2) would you DM me your account and workspace ID so I can take a closer look at the requests?
3) what filter criteria are you using?
For what it's worth, I really like what Nate is suggesting here about using concurrency limits for this use case, they are much more tuned for this kind of use case.mondras
09/13/2024, 6:18 PMChris Guidry
09/13/2024, 6:27 PMoffset
values) that can slow down queries too.
First, I'd encourage you to use the Prefect HTTP client if you can because it has built-in retries and jitter that should make things more reliable for you overall. I'd also encourage you to check out the other concurrency limiting mechanisms we have to prevent flows from running at the same time, rather than implementing it yourself. We've got tag-based concurrency as well as an API/SDK for you to limit concurrency yourself.mondras
09/13/2024, 6:29 PMmondras
09/13/2024, 6:29 PM