Per PR discussion: https://github.com/knative-sandbox/kn-plugin-event/pull/42/files#r674008140
Let investigate the RetryWatcher from client-go tools and knative/client waiting loop to introduce retry on error in the waiting loop.
There are cases that may result in premature closing of ResultChan, that's caused by recoverable failure. Detecting such occasions and re-creating watcher instance might be very desired.
https://github.com/knative-sandbox/kn-plugin-event/blob/0e1fe36db37682a10548808563a38c7e5ac3814c/pkg/k8s/jobrunner.go#L68-L96
Per PR discussion: https://github.com/knative-sandbox/kn-plugin-event/pull/42/files#r674008140
Let investigate the
RetryWatcherfromclient-gotools and knative/client waiting loop to introduce retry on error in the waiting loop.There are cases that may result in premature closing of
ResultChan, that's caused by recoverable failure. Detecting such occasions and re-creatingwatcherinstance might be very desired.https://github.com/knative-sandbox/kn-plugin-event/blob/0e1fe36db37682a10548808563a38c7e5ac3814c/pkg/k8s/jobrunner.go#L68-L96