Skip to content

Ability to request shutdown of a remote edge worker#50278

Merged
jscheffl merged 1 commit intoapache:mainfrom
dheerajturaga:remote-shutdown-edge-worker
May 6, 2025
Merged

Ability to request shutdown of a remote edge worker#50278
jscheffl merged 1 commit intoapache:mainfrom
dheerajturaga:remote-shutdown-edge-worker

Conversation

@dheerajturaga
Copy link
Member

When running on distributed clusters, there is often a need to shutdown certain edge workers running on remote hosts. Today this requires you to ssh to the host, identify the pid file and run airflow edge stop. This PR addresses the inconvenience by adding the ability to request a safe shutdown of the remote worker.

You should now be able run airflow edge shutdown-remote-edge-worker -H worker_name and the worker will automatically enter the shutdown routine

@dheerajturaga dheerajturaga requested a review from jscheffl as a code owner May 6, 2025 19:48
@boring-cyborg boring-cyborg bot added area:providers provider:edge Edge Executor / Worker (AIP-69) / edge3 labels May 6, 2025
Copy link
Contributor

@jscheffl jscheffl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks like a good extension.

Where I see people screaming after testnig that they need to get remote to start a worker back-up again :-D

@jscheffl jscheffl merged commit 7eef587 into apache:main May 6, 2025
66 checks passed
@dheerajturaga dheerajturaga deleted the remote-shutdown-edge-worker branch May 6, 2025 20:11
ayush3singh pushed a commit to ayush3singh/airflow that referenced this pull request May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:edge Edge Executor / Worker (AIP-69) / edge3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants