Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement alloc runner task restart hook #9869

Merged
merged 3 commits into from
Jan 22, 2021
Merged

Commits on Jan 21, 2021

  1. 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.
    tgross committed Jan 21, 2021
    Configuration menu
    Copy the full SHA
    0d149ec View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2021

  1. Configuration menu
    Copy the full SHA
    0684450 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0ba11e2 View commit details
    Browse the repository at this point in the history