mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Merge pull request #1457 from hashicorp/f-kill-event
Add killing event and mark task as not running when killed
This commit is contained in:
@@ -223,6 +223,12 @@ func (c *AllocStatusCommand) outputTaskStatus(state *api.TaskState) {
|
||||
} else {
|
||||
desc = "Failed to download artifacts"
|
||||
}
|
||||
case api.TaskKilling:
|
||||
if event.KillTimeout != 0 {
|
||||
desc = fmt.Sprintf("Sent interupt. Waiting %v before force killing", event.KillTimeout)
|
||||
} else {
|
||||
desc = "Sent interupt"
|
||||
}
|
||||
case api.TaskKilled:
|
||||
if event.KillError != "" {
|
||||
desc = event.KillError
|
||||
|
||||
Reference in New Issue
Block a user