prefect.server.models.concurrency_limits_v2
Functions
active_slots_after_decay
denied_slots_after_decay
slot_decay_per_second per second if it’s
greater than 0 (rate limits), otherwise for concurrency limits it decays at
a rate based on clamped avg_slot_occupancy_seconds.
The clamping matches the retry-after calculation to prevent denied_slots from
accumulating when clients retry faster than the unclamped decay rate.