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 1fbe7e0 commit 5c89671Copy full SHA for 5c89671
src/guidellm/scheduler/scheduler.py
@@ -154,7 +154,14 @@ async def run(
154
if future.done() and (err := future.exception()) is not None:
155
raise err
156
157
- if requests_iter is None and run_info.processing_requests <= 0:
+ if (
158
+ requests_iter is None
159
+ and run_info.processing_requests <= 0
160
+ and ( # Ensure we have met one of the end conditions
161
+ time.time() >= run_info.end_time
162
+ or run_info.completed_requests >= run_info.end_number
163
+ )
164
+ ):
165
# we've exhausted all requests we've wanted to run
166
# and yielded all responses
167
break
0 commit comments