Skip to content
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

Start probes in parallel #523

Merged
merged 3 commits into from
Jul 27, 2021
Merged

Start probes in parallel #523

merged 3 commits into from
Jul 27, 2021

Conversation

kmazurek
Copy link
Contributor

Resolves #522

@kmazurek kmazurek self-assigned this Jul 23, 2021
Comment on lines 185 to 186
if not future_gather.done():
future_gather.cancel()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think future_gather.done() is always true at this point, since await future_gather exited with exception.

OTOH, I'm not sure if cancelling future_gather will have any effects since it's already done(). You probably need to cancel each awaitable explicitly. Anyway, I would test this code thoroughly to make sure that it really does what you think it does.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I've updated this in 4afa05b. There's also an additional condition in test_runner_startup_shutdown which asserts on a log message happening directly after the probe tasks are cancelled.

Copy link
Contributor

@azawlocki azawlocki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kmazurek kmazurek merged commit 7944b21 into master Jul 27, 2021
@kmazurek kmazurek deleted the km/parallel-probes branch July 27, 2021 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Start yagna nodes in parallel during test setup
2 participants