• Tim Gross's avatar
    implement alloc runner task restart hook · 760bb970
    Tim Gross authored
    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.
    760bb970
To find the state of this project's repository at the time of any of these versions, check out the tags.