-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The slow process exit is caused by two issues. 1. Blocking tokio operations. This can either be caused by `spawn_blocking` (which is internally used by a lot of tokio std operations) and using block_on. The "guard" pattern can especially causes this because tokio is not expecting to block in a runtime thread. 2. Not receiving destroy event. We listen for the destroy event to determine if the removal is successful. However we only `.await` it after sending the removal call. So if the removal takes a short time, then the container could be destroyed before we start listening (since future does nothing until polled). This is fixed by spawning.
- Loading branch information
Showing
3 changed files
with
68 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters