Skip to content

Commit

Permalink
get KillTimeout in seconds, not nanoseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
chelseakomlo committed Dec 1, 2017
1 parent 94bbf2b commit 5846442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/driver/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ func (d *DockerDriver) createContainerConfig(ctx *ExecContext, task *structs.Tas
User: task.User,
Tty: driverConfig.TTY,
OpenStdin: driverConfig.Interactive,
StopTimeout: int(task.KillTimeout),
StopTimeout: int(task.KillTimeout.Seconds()),
}

if driverConfig.WorkDir != "" {
Expand Down

0 comments on commit 5846442

Please sign in to comment.