Michael Schurter
cfbe7520e8
consul: fix task deregistration hook
...
Broke ShutdownDelay but the test was timing dependent so it just
appeared flaky. Made the test slower so that it should never incorrectly
pass.
2019-02-12 15:36:02 -08:00
Preetha Appan
a1cc48f78d
Rename TaskKillRequest/Response to TaskPreKillRequest/Response
2019-01-22 09:54:02 -06:00
Michael Schurter
77c01c6283
Fix comment
...
Co-Authored-By: preetapan <preetha@hashicorp.com >
2019-01-22 09:41:21 -06:00
Preetha Appan
bf9a2168e7
Rename TaskKillHook to TaskPreKillHook to more closely match usage
...
Also added/fixed comments
2019-01-22 09:41:21 -06:00
Alex Dadgar
c7fc39d38d
Merge pull request #5168 from hashicorp/b-kill-race
...
Improve Kill handling on task runner
2019-01-09 12:05:10 -08:00
Alex Dadgar
d916c0dd12
add more comments
2019-01-09 12:04:22 -08:00
Alex Dadgar
a5ba15591a
Improve Kill handling on task runner
...
This PR improves how killing a task is handled. Before the kill function
directly orchestrated the killing and was only valid while the task was
running. The new behavior is to mark the desired state and wait for the
task runner to converge to that state.
2019-01-08 16:42:26 -08:00
Mahmood Ali
c0162fab35
move cstructs.DeviceNetwork to drivers pkg
2019-01-08 09:11:47 -05:00
Alex Dadgar
517bf1c35f
Fix unit tests + upgrade pathing resources
2018-12-18 15:50:44 -08:00
Danielle Tomlinson
03db4cf82d
client: Rename drivers/shared/env => client/taskenv
2018-11-30 12:18:39 +01:00
Danielle Tomlinson
6756ffd052
drivers: Move client/drivers/env to drivers/shared/env
...
As part of deprecating legacy drivers, we're moving the env package to a
new drivers/shared tree, as it is used by the modern docker and rkt
driver packages, and is useful for 3rd party plugins.
2018-11-30 10:46:13 +01: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
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