@@ -94,6 +94,23 @@ def processing_requests_limit(self) -> int:
9494 """
9595 return settings .max_concurrency
9696
97+ @property
98+ def process_requests_limits (self ) -> list [int ]:
99+ """
100+ The maximum number of requests per process for the scheduling strategy.
101+ It determines how many requests can be processed by each worker process
102+ for the scheduling strategy.
103+
104+ :return: A per-process list of the maximum number of requests per process.
105+ """
106+ split = self .processing_requests_limit // self .processes_limit
107+ remain = self .processing_requests_limit % self .processes_limit
108+
109+ return [
110+ split + 1 if i < remain else split
111+ for i in range (self .processes_limit )
112+ ]
113+
97114 def request_times (self ) -> Generator [float , None , None ]:
98115 """
99116 A generator that yields timestamps for when requests should be sent.
@@ -168,6 +185,18 @@ def processing_requests_limit(self) -> int:
168185 """
169186 return 1
170187
188+ @property
189+ def process_requests_limits (self ) -> List [int ]:
190+ """
191+ The maximum number of requests per process for the scheduling strategy.
192+ It determines how many requests can be processed by each worker process
193+ for the scheduling strategy.
194+
195+ :return: A per-process list of the maximum number of requests per process.
196+ """
197+
198+ return [1 ]
199+
171200 def request_times (self ) -> Generator [float , None , None ]:
172201 """
173202 A generator that yields time.time() so requests are sent immediately,
0 commit comments