prefect.concurrency.sync
¶
rate_limit
¶
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/sync.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
|