Files
nomad/command/agent/consul
Michael Schurter 383c85ae6f consul: add ScriptExecutor context wrapper
Since d335a82859 ScriptExecutors now take
a timeout duration instead of a context. This broke the script check
removal code which used context cancelation propagation to remove
script checks while they were executing.

This commit adds a wrapper around ScriptExecutors that obeys context
cancelation again. The only downside is that it leaks a goroutine until
the underlying Exec call completes or timeouts.

Since check removal is relatively rare, check timeouts usually low, and
scripts usually fast, the risk of leaking a goroutine seems very small.
2018-12-03 20:26:31 -08:00
..
2018-09-13 10:43:40 -07:00
2018-10-16 16:56:56 -07:00
2018-10-16 16:53:29 -07:00
2018-09-13 10:43:40 -07:00