Concurrency Limits V2
Create Concurrency Limit V2
POST
/
api
/
v2
/
concurrency_limits
/
Headers
x-prefect-api-version
string
Body
application/json
Data used by the Prefect REST API to create a v2 concurrency limit.
active
boolean
default: trueWhether the concurrency limit is active.
name
string
requiredThe name of the concurrency limit.
limit
integer
requiredThe concurrency limit.
active_slots
integer
default: 0The number of active slots.
denied_slots
integer
default: 0The number of denied slots.
slot_decay_per_second
number
default: 0The decay rate for active slots when used as a rate limit.
Response
201 - application/json
An ORM representation of a v2 concurrency limit.
id
string
created
string | null
updated
string | null
active
boolean
default: trueWhether the concurrency limit is active.
name
string
requiredThe name of the concurrency limit.
limit
integer
requiredThe concurrency limit.
active_slots
integer
default: 0The number of active slots.
denied_slots
integer
default: 0The number of denied slots.
slot_decay_per_second
number
default: 0The decay rate for active slots when used as a rate limit.
avg_slot_occupancy_seconds
number
default: 2The average amount of time a slot is occupied.
Was this page helpful?