@@ -15,6 +15,7 @@ async def run_receiver_task(
1515 sync_workers : int | None = None ,
1616 validate_params : bool = True ,
1717 max_async_tasks : int = 100 ,
18+ max_async_tasks_jitter : int = 0 ,
1819 max_prefetch : int = 0 ,
1920 propagate_exceptions : bool = True ,
2021 run_startup : bool = False ,
@@ -43,6 +44,7 @@ async def run_receiver_task(
4344 or processes in processpool that runs sync tasks.
4445 :param validate_params: whether to validate params or not.
4546 :param max_async_tasks: maximum number of simultaneous async tasks.
47+ :param max_async_tasks_jitter: random jitter to add to max_async_tasks.
4648 :param max_prefetch: maximum number of tasks to prefetch.
4749 :param propagate_exceptions: whether to propagate exceptions in generators or not.
4850 :param run_startup: whether to run startup function or not.
@@ -79,6 +81,7 @@ def on_exit(_: Receiver) -> None:
7981 run_startup = run_startup ,
8082 validate_params = validate_params ,
8183 max_async_tasks = max_async_tasks ,
84+ max_async_tasks_jitter = max_async_tasks_jitter ,
8285 max_prefetch = max_prefetch ,
8386 propagate_exceptions = propagate_exceptions ,
8487 on_exit = on_exit ,
0 commit comments