diff --git a/pkg/agent/sidecar/service/restorer/restorer.go b/pkg/agent/sidecar/service/restorer/restorer.go index ee9cc55b5fa..a8abb9f9e4d 100644 --- a/pkg/agent/sidecar/service/restorer/restorer.go +++ b/pkg/agent/sidecar/service/restorer/restorer.go @@ -25,6 +25,7 @@ import ( "path/filepath" "reflect" "syscall" + "time" "github.com/vdaas/vald/internal/backoff" "github.com/vdaas/vald/internal/errgroup" @@ -143,6 +144,9 @@ func (r *restorer) startRestore(ctx context.Context) (<-chan error, error) { log.Errorf("couldn't restore: %s", err) } + log.Debug("finished. waiting for 1 minute") + time.Sleep(time.Minute) + return p.Signal(syscall.SIGTERM) // TODO: #403 }))