fix(idlewatcher): log error and retry instead instead of stopping

This commit is contained in:
yusing 2025-05-01 06:46:24 +08:00
parent 16e6e72454
commit f06741428c

View file

@ -262,7 +262,7 @@ func (w *Watcher) watchUntilDestroy() (returnCause gperr.Error) {
case <-w.task.Context().Done():
return gperr.Wrap(w.task.FinishCause())
case err := <-errCh:
return err
gperr.LogError("watcher error", err, &w.l)
case e := <-eventCh:
w.l.Debug().Stringer("action", e.Action).Msg("state changed")
if e.Action == events.ActionContainerDestroy {