Alex Dadgar
8b624340ad
Fix various bugs with task events
...
Fixes the following:
* Emitting events when the task fails to start
* Don't double emit events on task shutdown (nomad stop)
* Don't emit a OOM kill metric unless actually OOM'd
2018-12-05 14:27:07 -08:00
Michael Schurter
a22205cd8f
client: block on context as well as waitCh
...
For lifecycle operations such as Restart and Kill, the client should not
expect driver plugins to be well behaved and close their waitCh on
context cancelation. Always wait on the passed in context as well as the
waitCh.
2018-11-05 12:32:05 -08:00
Michael Schurter
740ca8e6ca
client: fix tr lifecycle logic and shutdown delay
...
ShutdownDelay must be honored whenever the task is killed or restarted.
Services were not being deregistered prior to restarting.
2018-11-05 12:32:05 -08:00
Michael Schurter
fdbe446ea6
client: first pass at implementing task restoring
...
Task restoring works but dead tasks may be restarted
2018-11-05 12:32:05 -08:00
Michael Schurter
cf42289c8b
fix linter errors
2018-10-16 16:56:57 -07:00
Nick Ethier
993e045ff9
taskrunner: return error on waitCh
2018-10-16 16:56:56 -07:00
Nick Ethier
44cc52a0d4
client: simplify driver plugin logic from review comments
2018-10-16 16:56:56 -07:00
Nick Ethier
4f9522dd54
client: review comments and fixup/skip tests
2018-10-16 16:56:56 -07:00
Nick Ethier
d335a82859
client: begin driver plugin integration
...
client: fingerprint driver plugins
2018-10-16 16:56:56 -07:00
Alex Dadgar
3a492bb33f
allocrunnerv2 -> allocrunner
2018-10-16 16:56:56 -07:00