Skip to content

Add v2_playbook_on_terminated_early callback#84093

Open
m-bull wants to merge 6 commits intoansible:develfrom
stackhpc:issues/81549-2
Open

Add v2_playbook_on_terminated_early callback#84093
m-bull wants to merge 6 commits intoansible:develfrom
stackhpc:issues/81549-2

Conversation

@m-bull
Copy link

@m-bull m-bull commented Oct 9, 2024

Add a callback that fires when terminating because we've run out of hosts to run tasks on.

This is proposed as an alternative approach to #81550, which is discussed in #81549, and is mostly the same solution but an addition rather than a replacement of existing functionality.

Additionally, fix the v2_playbook_on_no_hosts_remaining firing twice when using max_fail_percentage.

markgoddard and others added 5 commits October 9, 2024 16:27
This change adds a new testcase to the ansible-playbook-callbacks
integration test that checks the callbacks fired when all hosts fail
and we terminate early.

This provides a simple regression test for issue 81549.

(cherry picked from commit 55ed0b0)
@ansibot ansibot added needs_triage Needs a first human triage before being processed. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Oct 9, 2024
@ansibot ansibot removed the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. label Oct 9, 2024
@s-hertel s-hertel removed the needs_triage Needs a first human triage before being processed. label Oct 15, 2024
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Oct 22, 2024
@ansibot ansibot added the needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html label Dec 10, 2024
@ansibot ansibot added the stale_pr This PR has not been pushed to for more than one year. label Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. stale_pr This PR has not been pushed to for more than one year.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants