prefect.concurrency.asyncio
¶
ConcurrencySlotAcquisitionError
¶
Bases: Exception
Raised when an unhandlable occurs while acquiring concurrency slots.
Source code in src/prefect/concurrency/asyncio.py
24 25 |
|
rate_limit
async
¶
Block execution until an occupy
number of slots of the concurrency
limits given in names
are acquired. Requires that all given concurrency
limits have a slot decay.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
names |
Union[str, List[str]]
|
The names of the concurrency limits to acquire slots from. |
required |
occupy |
int
|
The number of slots to acquire and hold from each limit. |
1
|
Source code in src/prefect/concurrency/asyncio.py
46 47 48 49 50 51 52 53 54 55 56 57 |
|