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-08-30 13:43:09 -07:00
2018-12-03 20:26:31 -08:00
2015-12-04 17:12:47 -08:00
2018-03-11 17:43:19 +00:00
2017-10-13 13:12:20 -07:00
2018-02-15 13:59:01 -08:00
2018-09-13 10:43:40 -07:00
2018-09-13 10:43:40 -07:00
2018-11-19 23:21:19 -05:00
2018-11-13 10:21:40 -05:00
2018-02-15 13:59:03 -08:00
2018-09-04 16:10:11 -05:00
2018-08-30 13:43:09 -07:00
2018-11-19 23:21:48 -05:00
2018-03-22 13:53:08 -07:00
2018-10-02 17:08:25 -07:00
2018-11-19 23:21:48 -05:00
2018-11-19 23:22:33 -05:00
2018-11-29 22:27:39 -05:00
2017-11-17 14:53:26 -06:00
2017-11-17 14:53:26 -06:00
2018-03-11 18:35:30 +00:00
2015-09-07 10:03:10 -07:00
2018-10-16 16:56:55 -07:00
2018-05-02 10:46:16 -07:00
2018-02-15 13:59:02 -08:00
2018-10-16 16:56:55 -07:00
2017-10-13 14:36:02 -07:00
2018-01-17 10:29:15 -05:00
2018-11-12 15:57:45 -06:00
2018-10-11 14:05:19 -07:00
2018-10-11 14:05:19 -07:00
2017-10-23 16:48:20 -07:00
2016-10-17 10:48:04 -07:00
2017-07-20 09:36:34 -07:00
2015-08-16 13:54:49 -07:00
2017-07-20 09:36:34 -07:00
2017-09-26 15:26:33 -07:00
2017-10-23 18:38:36 -07:00
2018-09-13 10:43:40 -07:00
2018-05-30 17:27:04 -05:00
2018-08-24 10:50:12 -04:00
2018-11-12 15:57:45 -06:00
2018-11-10 17:37:33 -06:00
2018-10-16 16:56:56 -07:00
2017-07-20 09:36:34 -07:00
2015-11-24 09:38:07 -08:00
2018-09-13 10:43:40 -07:00
2018-09-13 10:43:40 -07:00
2017-08-21 15:20:55 +00:00
2017-09-07 17:04:21 -07:00
2018-05-30 15:11:54 -05:00
2018-02-15 13:59:02 -08:00
2017-07-20 09:36:34 -07:00
2015-09-06 18:39:03 -07:00
2017-09-19 10:08:23 -05:00
2017-07-20 09:36:34 -07:00
2018-03-11 17:47:09 +00:00
2017-07-20 09:36:34 -07:00
2016-08-03 16:12:47 -07:00
2018-03-11 18:56:45 +00:00