Files
nomad/client
Tim Gross 760bb970c3 implement alloc runner task restart hook
Most allocation hooks don't need to know when a single task within the
allocation is restarted. The check watcher for group services triggers the
alloc runner to restart all tasks, but the alloc runner's `Restart` method
doesn't trigger any of the alloc hooks, including the group service hook. The
result is that after the first time a check triggers a restart, we'll never
restart the tasks of an allocation again.

This commit adds a `RunnerTaskRestartHook` interface so that alloc runner
hooks can act if a task within the alloc is restarted. The only implementation
is in the group service hook, which will force a re-registration of the
alloc's services and fix check restarts.
2021-01-22 10:55:40 -05:00
..
2020-12-09 11:05:18 -08:00
2020-12-09 11:05:18 -08:00
2020-12-09 11:05:18 -08:00
2020-03-15 09:37:05 +01:00
2020-12-09 11:05:18 -08:00
2020-12-09 11:05:18 -08:00
2020-12-09 11:05:18 -08:00
2020-10-19 09:30:15 -04:00
2021-01-14 12:46:35 -08:00
2020-10-14 15:17:47 -07:00
2020-10-19 09:30:15 -04:00
2019-01-11 11:36:37 -08:00
2020-03-02 13:47:43 -05:00
2020-12-09 11:05:18 -08:00
2018-10-16 16:53:29 -07:00