From d5e84dd27ce768c7cd72333805c85f9b87386da2 Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Thu, 29 Feb 2024 20:59:59 +0000 Subject: [PATCH] Add delay before restarting state tracker to avoid fast-looping on errors from containerd Signed-off-by: Brad Davidson --- pkg/state/state.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/state/state.go b/pkg/state/state.go index f04d0c08..76f0f8da 100644 --- a/pkg/state/state.go +++ b/pkg/state/state.go @@ -24,6 +24,7 @@ func Track(ctx context.Context, ociClient oci.Client, router routing.Router, res return } log.Error(err, "restarting image state tracker due to error") + time.Sleep(time.Second) } }