open-nomad/client/allocrunner
Michael Schurter 5925424c7c client: emit Killing/Killed task events
We were just emitting Killed/Terminated events before. In v0.8 we
emitted Killing/Killed, but lacked Terminated when explicitly stopping
a task. This change makes it so Terminated is always included, whether
explicitly stopping a task or it exiting on its own.

New output:

2019-01-04T14:58:51-08:00  Killed            Task successfully killed
2019-01-04T14:58:51-08:00  Terminated        Exit Code: 130, Signal: 2
2019-01-04T14:58:51-08:00  Killing           Sent interrupt
2019-01-04T14:58:51-08:00  Leader Task Dead  Leader Task in Group dead
2019-01-04T14:58:49-08:00  Started           Task started by client
2019-01-04T14:58:49-08:00  Task Setup        Building Task Directory
2019-01-04T14:58:49-08:00  Received          Task received by client

Old (v0.8.6) output:

2019-01-04T22:14:54Z  Killed            Task successfully killed
2019-01-04T22:14:54Z  Killing           Sent interrupt. Waiting 5s before force killing
2019-01-04T22:14:54Z  Leader Task Dead  Leader Task in Group dead
2019-01-04T22:14:53Z  Started           Task started by client
2019-01-04T22:14:53Z  Task Setup        Building Task Directory
2019-01-04T22:14:53Z  Received          Task received by client
2019-01-08 07:20:54 -08:00
..
interfaces client: Rename drivers/shared/env => client/taskenv 2018-11-30 12:18:39 +01:00
state allocrunnerv2 -> allocrunner 2018-10-16 16:56:56 -07:00
taskrunner client: emit Killing/Killed task events 2019-01-08 07:20:54 -08:00
alloc_runner.go client: emit Killing/Killed task events 2019-01-08 07:20:54 -08:00
alloc_runner_hooks.go client/state: support upgrading from 0.8->0.9 2018-12-19 10:39:27 -08:00
alloc_runner_test.go Merge pull request #5002 from hashicorp/b-task-config-resources 2018-12-18 16:46:34 -08:00
allocdir_hook.go allocrunnerv2 -> allocrunner 2018-10-16 16:56:56 -07:00
config.go client/drivermananger: add driver manager 2018-12-18 22:55:18 -05:00
health_hook.go client/state: support upgrading from 0.8->0.9 2018-12-19 10:39:27 -08:00
health_hook_test.go tests: implement HasHealth for mock health 2018-12-19 10:39:27 -08:00
migrate_hook.go client: Unify handling of previous and preempted allocs 2018-12-11 13:12:35 +01:00
testing.go client: add proper build flag to allocrunner testing.go 2018-12-19 20:22:07 -05:00
upstream_allocs_hook.go client: Unify handling of previous and preempted allocs 2018-12-11 13:12:35 +01:00
util.go allocrunnerv2 -> allocrunner 2018-10-16 16:56:56 -07:00