diff --git a/ipni-gc/cmd/ipnigc/daemon.go b/ipni-gc/cmd/ipnigc/daemon.go index 44b8e6d3f..e7fbe2124 100644 --- a/ipni-gc/cmd/ipnigc/daemon.go +++ b/ipni-gc/cmd/ipnigc/daemon.go @@ -187,6 +187,10 @@ func runGC(ctx context.Context, grim *reaper.Reaper, pc *pcache.ProviderCache, e for _, pid := range pids { err := grim.Reap(ctx, pid) if err != nil { + if errors.Is(err, context.Canceled) { + log.Info("GC shutdown while processing provider", "provider", pid) + return + } log.Errorw("Failed GC for provider", "err", err, "provider", pid) continue }