Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
task delete: Closes task IO before waiting
After containerd restarts, it will try to recover its sandboxes, containers, and images. If it detects a task in the Created or Stopped state, it will be removed. This will cause the containerd process it hang on Windows on the t.io.Wait() call. Calling t.io.Close() beforehand will solve this issue. Additionally, the same issue occurs when trying to stopp a sandbox after containerd restarts. This will solve that case as well. Signed-off-by: Claudiu Belu <cbelu@cloudbasesolutions.com> (cherry picked from commit 55faa5e) Signed-off-by: Daniel Canter <dcanter@microsoft.com>
- Loading branch information