We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47e7155 commit c98482fCopy full SHA for c98482f
src/guidellm/scheduler/scheduler.py
@@ -377,6 +377,10 @@ def _add_requests(
377
and added_count < settings.max_add_requests_per_loop
378
):
379
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.
384
if time.time() >= run_info.end_time - 1:
385
run_info.termination_reason = "max_seconds_reached"
386
else:
0 commit comments