Skip to content

Conversation

@dheerajturaga
Copy link
Member

The airflow celery cli commands are just limited to starting and stopping workers from the target host machine. This PR aims to enrich the celery cli with new set of commands that give users more control over their celery worker pool.

Here's the new list of commands:
list-workers: Lists all active celery workers
shutdown-worker: Requests graceful shutdown of the celery worker (this can be run from any host and doesn't need the pid file)
shutdown-all-workers: Requests graceful shutdown of all workers in the celery worker pool
add-queue: Subscribe celery worker to a queue(s)
remove-queue: Unsubscribe celery worker from a queue(s)

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 for the extension! Makes sense... and closes up on CLI that was extended on Edge3 as well.

@jscheffl jscheffl merged commit 96db849 into apache:main Jun 1, 2025
66 checks passed
@dheerajturaga dheerajturaga deleted the new-celery-cli-cmds branch June 1, 2025 12:55
sanederchik pushed a commit to sanederchik/airflow that referenced this pull request Jun 7, 2025
…51257)

* Ability to list active celery workers and request shutdown from cli

* Add unittests for new cli commands

* Fix typo for spell check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants