Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Clean shutdown for subcommands#6909

Merged
cecton merged 4 commits intomasterfrom
cecton-cli-cleanup-run
Aug 20, 2020
Merged

Clean shutdown for subcommands#6909
cecton merged 4 commits intomasterfrom
cecton-cli-cleanup-run

Conversation

@cecton
Copy link
Contributor

@cecton cecton commented Aug 18, 2020

No description provided.

cecton added 2 commits August 18, 2020 09:05
Forked at: f8c83bd
Parent branch: origin/master
@github-actions github-actions bot added the A3-in_progress Pull request is in progress. No review needed at this stage. label Aug 18, 2020
@cecton cecton marked this pull request as ready for review August 20, 2020 05:13
@github-actions github-actions bot added A0-please_review Pull request needs code review. and removed A3-in_progress Pull request is in progress. No review needed at this stage. labels Aug 20, 2020
@cecton cecton added A3-in_progress Pull request is in progress. No review needed at this stage. and removed A0-please_review Pull request needs code review. labels Aug 20, 2020
Forked at: f8c83bd
Parent branch: origin/master
@cecton cecton added B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Aug 20, 2020

task_manager.terminate();
drop(tokio_runtime);
task_manager.clean_shutdown();
Copy link
Member

Choose a reason for hiding this comment

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

What is the difference? And why isn't clean_shutdown being called in Drop?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, clean_shutdown is async.... wait, I forgot the .await!!! 😓

Forked at: f8c83bd
Parent branch: origin/master
@cecton cecton force-pushed the cecton-cli-cleanup-run branch from 9702413 to a017493 Compare August 20, 2020 13:19
@cecton cecton merged commit 9c679b3 into master Aug 20, 2020
@cecton cecton deleted the cecton-cli-cleanup-run branch August 20, 2020 14:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A3-in_progress Pull request is in progress. No review needed at this stage. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants