prefect.concurrency.asyncio
¶
ConcurrencySlotAcquisitionError
¶
Bases: Exception
Raised when an unhandlable occurs while acquiring concurrency slots.
Source code in prefect/concurrency/asyncio.py
18 19 |
|
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 prefect/concurrency/asyncio.py
40 41 42 43 44 45 46 47 48 49 50 51 |
|