mirror of
https://github.com/Luzifer/elb-instance-status.git
synced 2024-09-19 15:12:57 +00:00
Fix: Give the process kill a bit more time to succeed
This commit is contained in:
parent
1176799e0e
commit
4288a67f10
2
main.go
2
main.go
@ -155,7 +155,7 @@ func executeAndRegisterCheck(ctx context.Context, checkID string) {
|
|||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
log.Printf("Execution of check '%s' was killed through context timeout.", checkID)
|
log.Printf("Execution of check '%s' was killed through context timeout.", checkID)
|
||||||
cmd.Process.Kill()
|
cmd.Process.Kill()
|
||||||
time.Sleep(time.Millisecond)
|
time.Sleep(100 * time.Millisecond)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user