summaryrefslogtreecommitdiff
path: root/pkg/worker_watcher
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-18 22:38:45 +0300
committerValery Piashchynski <[email protected]>2021-01-18 22:38:45 +0300
commit4b17b4e3050be2f9caef749e7f05394d46815459 (patch)
tree787504dbb7b570f39c12af2913187175042b4bfd /pkg/worker_watcher
parent6cbf6d78fe0a49475e5523a2bffe8996ecf8396e (diff)
Update CI
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'pkg/worker_watcher')
-rw-r--r--pkg/worker_watcher/stack.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/worker_watcher/stack.go b/pkg/worker_watcher/stack.go
index 788750dc..c87e8b65 100644
--- a/pkg/worker_watcher/stack.go
+++ b/pkg/worker_watcher/stack.go
@@ -109,7 +109,8 @@ func (stack *Stack) Destroy(ctx context.Context) {
stack.destroy = true
stack.mutex.Unlock()
- tt := time.NewTicker(time.Millisecond * 100)
+ tt := time.NewTicker(time.Millisecond * 500)
+ defer tt.Stop()
for {
select {
case <-tt.C:
@@ -131,7 +132,6 @@ func (stack *Stack) Destroy(ctx context.Context) {
_ = stack.workers[i].Kill()
}
stack.mutex.Unlock()
- tt.Stop()
// clear
stack.Reset()
return