One more quick question. Is there a way to rate li...
# prefect-getting-started
j
One more quick question. Is there a way to rate limit flow runs?
1
k
you can set a concurrency limit on your work pool or the work queues in your work pool, which applies a maximum number of flow runs that can happen at any given time on that pool/queue
oh I just read your earlier post, you know this facepalm
j
Gotcha, but no means of offsetting start times by x time from the previous flow run?
hahah
k
hmm well I guess it depends on what's responsible for starting your runs
j
Mostly trying to prevent a "thundering herd" issue I'm encountering
Where many flow runs queue up from an event, kick off, then slam an API
I've partially resolved with with retries and jitter
but it would be great to be a bit kinder to the API 🙂
k
with a slot decay
j
wow
this is fantastic
🙌 1
Perfect, I think I have everything I need then
thank you!
k
happy to help :)
j
@Kevin Grismore: a clarification question about slot decay as there's a little room in the documentation for interpretation. Does the decay begin after the slot is initially occupied or after the slot is freed?
Also, in the UI I see a field called
Active Slots
and in the Rest API an additional field called
denied_slots
that are not described in the documentation. Could I ask you for a little clarification of what those are and how to use them?