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

Backport of client: always run alloc cleanup hooks on final update into release/1.4.x #15924

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #15855 to be assessed for backporting due to the inclusion of the label backport/1.4.x.

The below text is copied from the body of the original PR.


This PR fixes a bug where alloc pre-kill hooks were not run in the
edge case where there are no live tasks remaining, but it is also
the final update to process for the (terminal) allocation. We need
to run cleanup hooks here, otherwise they will not run until the
allocation gets garbage collected (i.e. via Destroy()), possibly
at a distant time in the future.

Fixes #15477

@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/f-nsd-check-leaks/reasonably-mature-mudfish branch from d6505ff to 417873c Compare January 27, 2023 16:01
@hc-github-team-nomad-core hc-github-team-nomad-core merged commit 46c124d into release/1.4.x Jan 27, 2023
@hc-github-team-nomad-core hc-github-team-nomad-core deleted the backport/f-nsd-check-leaks/reasonably-mature-mudfish branch January 27, 2023 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants