fix(machine): improve context cancellation handling during watch and sync operations

This commit is contained in:
Pasha Sviderski
2026-06-24 13:41:14 +10:00
parent 83256b5bf7
commit 328d17599b
3 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -620,7 +620,7 @@ func (cc *clusterController) syncDockerContainers(ctx context.Context) error {
return nil
}
if err := backoff.Retry(watchAndSync, boff); err != nil {
if errors.Is(err, context.Canceled) {
if ctx.Err() != nil {
return nil
}
return fmt.Errorf("watch and sync containers to cluster store: %w", err)