Skip to content

Commit 9945710

Browse files
author
markvaykhansky
committed
Add shutdown check interval to settings
1 parent 1bc8f9a commit 9945710

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/guidellm/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ class Settings(BaseSettings):
113113
default_async_loop_sleep: float = 10e-5
114114
logging: LoggingSettings = LoggingSettings()
115115
default_sweep_number: int = 10
116+
shutdown_poll_interval_seconds: float = 10
116117

117118
# HTTP settings
118119
request_follow_redirects: bool = True

src/guidellm/scheduler/scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ async def _start_processes(
275275
requests_queue,
276276
responses_queue,
277277
shutdown_event,
278-
timedelta(seconds=10).total_seconds(),
278+
settings.shutdown_poll_interval_seconds,
279279
id_,
280280
requests_limit,
281281
)

0 commit comments

Comments
 (0)