Skip to content

[v3-3-test] Stop airflow standalone leaking components when one fails to start (#72464) - #72568

Merged
henry3260 merged 1 commit into
v3-3-testfrom
backport-8412889-v3-3-test
Sep 5, 2026
Merged

henry3260 merged 1 commit into
v3-3-testfrom
backport-8412889-v3-3-test

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor
  • Stop airflow standalone leaking components when one fails to start

SubCommand.process is only assigned once the thread reaches Popen, so a
component whose executable could not be spawned leaves the attribute absent
rather than empty. Shutdown then raises out of the loop that terminates each
component in turn, and every sibling after the failed one keeps running
against the metadata database after standalone itself has exited.

  • Update airflow-core/tests/unit/cli/commands/test_standalone_command.py

(cherry picked from commit 8412889)

Co-authored-by: Y-C [email protected]
Co-authored-by: Eason09053360 [email protected]
Co-authored-by: Henry Chen [email protected]

… to start (#72464)

* Stop airflow standalone leaking components when one fails to start

SubCommand.process is only assigned once the thread reaches Popen, so a
component whose executable could not be spawned leaves the attribute absent
rather than empty. Shutdown then raises out of the loop that terminates each
component in turn, and every sibling after the failed one keeps running
against the metadata database after standalone itself has exited.

* Update airflow-core/tests/unit/cli/commands/test_standalone_command.py

---------
(cherry picked from commit 8412889)

Co-authored-by: Y-C <[email protected]>
Co-authored-by: Eason09053360 <[email protected]>
Co-authored-by: Henry Chen <[email protected]>
@henry3260
henry3260 merged commit a91a8e3 into v3-3-test Sep 5, 2026
95 of 104 checks passed
@henry3260
henry3260 deleted the backport-8412889-v3-3-test branch September 5, 2026 18:45
@github-actions github-actions Bot added this to the Airflow 3.3.2 milestone Sep 5, 2026
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor Author

Hi maintainer, this PR was merged without a milestone set.
We've automatically set the milestone to Airflow 3.3.2 based on: merged to version branch
If this milestone is not correct, please update it to the appropriate milestone.

This comment was generated by Milestone Tag Assistant.

vatsrahul1001 pushed a commit that referenced this pull request Sep 7, 2026
… to start (#72464) (#72568)

* Stop airflow standalone leaking components when one fails to start

SubCommand.process is only assigned once the thread reaches Popen, so a
component whose executable could not be spawned leaves the attribute absent
rather than empty. Shutdown then raises out of the loop that terminates each
component in turn, and every sibling after the failed one keeps running
against the metadata database after standalone itself has exited.

* Update airflow-core/tests/unit/cli/commands/test_standalone_command.py

---------
(cherry picked from commit 8412889)

Co-authored-by: Y-C <[email protected]>
Co-authored-by: Eason09053360 <[email protected]>
Co-authored-by: Henry Chen <[email protected]>
@vatsrahul1001 vatsrahul1001 added the type:bug-fix Changelog: Bug Fixes label Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:CLI type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants