mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
killing should be done with wait client
Incidentally changed in 5b14d24bf4
This commit is contained in:
@@ -1852,7 +1852,7 @@ func (h *DockerHandle) Signal(s os.Signal) error {
|
||||
// Kill is used to terminate the task. This uses `docker stop -t killTimeout`
|
||||
func (h *DockerHandle) Kill() error {
|
||||
// Stop the container
|
||||
err := h.client.StopContainer(h.containerID, uint(h.killTimeout.Seconds()))
|
||||
err := h.waitClient.StopContainer(h.containerID, uint(h.killTimeout.Seconds()))
|
||||
if err != nil {
|
||||
|
||||
// Container has already been removed.
|
||||
|
||||
Reference in New Issue
Block a user