v1

latestOpenAPI 3.1.0raw.githubusercontent.com2024-11-08170291390.5 KB
Concurrency Limits V2

Create Concurrency Limit V2

post/api/v2/concurrency_limits/

Headers

x-prefect-api-versionstring

Request body

activeboolean

Whether the concurrency limit is active.

namestring required

The name of the concurrency limit.

limitinteger required

The concurrency limit.

active_slotsinteger

The number of active slots.

denied_slotsinteger

The number of denied slots.

slot_decay_per_secondnumber

The decay rate for active slots when used as a rate limit.

Response

Successful Response

idstring uuid
createdstring date-time
updatedstring date-time
activeboolean

Whether the concurrency limit is active.

namestring required

The name of the concurrency limit.

limitinteger required

The concurrency limit.

active_slotsinteger

The number of active slots.

denied_slotsinteger

The number of denied slots.

slot_decay_per_secondnumber

The decay rate for active slots when used as a rate limit.

avg_slot_occupancy_secondsnumber

The average amount of time a slot is occupied.