-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --expect-workers-max-wait parameter #1922
Conversation
while len(runner.clients.ready) < options.expect_workers: | ||
if options.expect_workers_max_wait and options.expect_workers_max_wait < time.monotonic() - start_time: | ||
logger.error("Gave up waiting for workers to connect.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you add
if runner is not None:
runner.quit()
here to remove all workers, if any?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
This error occurred when I run this command: |
Use --expect-workers not --expect-worker |
This is very useful in CI, where you dont want to wait forever if your workers fail to connect.