open-nomad/client/allocrunner/taskrunner
Seth Hoenig db2347a86c cleanup: prevent leaks from time.After
This PR replaces use of time.After with a safe helper function
that creates a time.Timer to use instead. The new function returns
both a time.Timer and a Stop function that the caller must handle.

Unlike time.NewTimer, the helper function does not panic if the duration
set is <= 0.
2022-02-02 14:32:26 -06:00
..
getter update template and artifact interpolation to use client-relative paths 2021-01-04 22:25:34 +00:00
interfaces template: trigger change_mode for dynamic secrets on restore (#9636) 2020-12-16 13:36:19 -05:00
restarts core: implement system batch scheduler 2021-08-03 10:30:47 -04:00
state client: test logmon cleanup 2019-03-04 13:15:15 -08:00
template Expose Consul template configuration parameters (#11606) 2022-01-10 10:19:07 -05:00
testdata executor/linux: make chroot binary paths absolute 2019-04-01 15:45:31 -07:00
artifact_hook.go update template and artifact interpolation to use client-relative paths 2021-01-04 22:25:34 +00:00
artifact_hook_test.go update template and artifact interpolation to use client-relative paths 2021-01-04 22:25:34 +00:00
connect_native_hook.go consul/connect: automatically set consul tls sni name for connect native tasks 2021-06-28 08:36:53 -05:00
connect_native_hook_test.go test: update tests to properly use AllocDir 2021-10-19 10:49:07 -07:00
device_hook.go
device_hook_test.go
dispatch_hook.go
dispatch_hook_test.go test: update tests to properly use AllocDir 2021-10-19 10:49:07 -07:00
driver_handle.go core: propagate remote task handles 2021-04-27 15:07:03 -07:00
envoy_bootstrap_hook.go deps: import libtime the normal way 2022-01-31 14:49:05 -06:00
envoy_bootstrap_hook_test.go client: never embed alloc_dir in chroot 2021-10-18 09:22:01 -07:00
envoy_version_hook.go consul/connect: fix regression where client connect images ignored 2020-12-14 09:47:55 -06:00
envoy_version_hook_test.go test: update tests to properly use AllocDir 2021-10-19 10:49:07 -07:00
errors.go client: artifact errors are retry-able 2019-02-20 07:21:27 -08:00
errors_test.go client: artifact errors are retry-able 2019-02-20 07:21:27 -08:00
lazy_handle.go
lifecycle.go drivers: Capture exit code when task is killed (#10494) 2021-05-04 10:54:00 -04:00
logmon_hook.go address review comments 2019-12-13 11:21:00 -05:00
logmon_hook_test.go driver: allow disabling log collection 2019-12-08 14:15:03 -05:00
logmon_hook_unix_test.go gofmt all the files 2021-10-01 10:14:28 -04:00
plugin_supervisor_hook.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
remotetask_hook.go core: propagate remote task handles 2021-04-27 15:07:03 -07:00
script_check_hook.go chore: fixup inconsistent method receiver names. (#11704) 2021-12-20 11:44:21 +01:00
script_check_hook_test.go consul: plubming for specifying consul namespace in job/group 2021-04-05 10:03:19 -06:00
service_hook.go consul: avoid triggering unnecessary sync when removing workload 2021-07-06 14:08:42 -05:00
service_hook_test.go consul: avoid triggering unnecessary sync when removing workload 2021-07-06 14:08:42 -05:00
sids_hook.go client: PR cleanup - improved logging around kill task in SIDS hook 2020-01-31 19:05:23 -06:00
sids_hook_test.go gofmt all the files 2021-10-01 10:14:28 -04:00
stats_hook.go tests: deflake TestTaskRunner_StatsHook_Periodic (#9734) 2021-01-06 16:03:00 -05:00
stats_hook_test.go tests: deflake TestTaskRunner_StatsHook_Periodic (#9734) 2021-01-06 16:03:00 -05:00
task_dir_hook.go update template and artifact interpolation to use client-relative paths 2021-01-04 22:25:34 +00:00
task_runner.go cleanup: prevent leaks from time.After 2022-02-02 14:32:26 -06:00
task_runner_getters.go lifecycle: add poststop hook (#8194) 2020-11-12 08:01:42 -08:00
task_runner_hooks.go task runner: fix goroutine leak in prestart hook (#11741) 2021-12-23 11:50:51 -05:00
task_runner_test.go provide -no-shutdown-delay flag for job/alloc stop (#11596) 2021-12-13 14:54:53 -05:00
tasklet.go comments: cleanup some leftover debug comments and such 2020-01-31 19:04:35 -06:00
tasklet_test.go support script checks for task group services (#6197) 2019-09-03 15:09:04 -04:00
template_hook.go consul: plubming for specifying consul namespace in job/group 2021-04-05 10:03:19 -06:00
validate_hook.go s/0.13/1.0/g 2020-10-14 15:17:47 -07:00
validate_hook_test.go
vault_hook.go Merge pull request #11402 from hashicorp/document-client-initial-vault-renew 2022-01-13 16:21:58 +01:00
vault_hook_test.go
volume_hook.go volumes: return better error messages for unsupported task drivers (#8030) 2020-05-21 09:18:02 -04:00
volume_hook_test.go volumes: return better error messages for unsupported task drivers (#8030) 2020-05-21 09:18:02 -04:00