Skip to content

Commit c98482f

Browse files
fix: clearifying comment
1 parent 47e7155 commit c98482f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/guidellm/scheduler/scheduler.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,10 @@ def _add_requests(
377377
and added_count < settings.max_add_requests_per_loop
378378
):
379379
if run_info.created_requests >= run_info.end_number:
380+
# When `--max-seconds` is set and the dataset is finite -
381+
# almost always the benchmark will end slightly before the
382+
# actual `end_time`.
383+
# Since the units are seconds, rounding 1s is reasonable.
380384
if time.time() >= run_info.end_time - 1:
381385
run_info.termination_reason = "max_seconds_reached"
382386
else:

0 commit comments

Comments
 (0)