Skip to content

Commit 0a6230b

Browse files
markurtzsjmonson
andauthored
Update src/guidellm/scheduler/scheduler.py
Co-authored-by: Samuel Monson <[email protected]>
1 parent d4f8c1a commit 0a6230b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guidellm/scheduler/scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ async def run(
115115
if max_duration is not None and max_duration < 0:
116116
raise ValueError(f"Invalid max_duration: {max_duration}")
117117

118-
with multiprocessing.Manager() as manager, ProcessPoolExecutor() as executor:
118+
with multiprocessing.Manager() as manager, ProcessPoolExecutor(max_workers=scheduling_strategy.processes_limit) as executor:
119119
futures, requests_queue, responses_queue = await self._start_processes(
120120
manager, executor, scheduling_strategy
121121
)

0 commit comments

Comments
 (0)