Skip to content

Apply warm shutdown across coordinators #69188

Open

Description

@uranusjr

Body

Python coordinator implements this in #69034. We should make this also available for other coordinators.

A small-scale refactoring to move the context manager to ActivityProcess so we can do something like:

class ActivitySubprocess:
    @classmethod
    def run(cls, **kwargs):
        with _warm_shutdown_signals():
            self = cls.start(**kwargs)
            exit_code = self.wait()
        return exit_code, self

and just use this instead of calling things separately. All coordinators can switch to use this new function. Language side shoould be fine as-is; dedicated signal handling improvements can be made but they are not specific to this.

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Activity

  1. added
    kind:metaHigh-level information important to the community
    area:coordinatorCoordinator: The interface to spawn Lang-SDK subprocesses
    and removed
    kind:metaHigh-level information important to the community
    on Jun 30, 2026
  2. self-assigned this
    on Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions