Skip to content

Commit

Permalink
⚗️ add sleep 1 minute code
Browse files Browse the repository at this point in the history
Signed-off-by: Rintaro Okamura <[email protected]>
  • Loading branch information
rinx committed Jun 25, 2020
1 parent 18ac866 commit 59faa29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/agent/sidecar/service/restorer/restorer.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"path/filepath"
"reflect"
"syscall"
"time"

"github.com/vdaas/vald/internal/backoff"
"github.com/vdaas/vald/internal/errgroup"
Expand Down Expand Up @@ -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
}))

Expand Down

0 comments on commit 59faa29

Please sign in to comment.