santosh-d3vpl3x opened a new pull request #17278:
URL: https://github.com/apache/airflow/pull/17278


   **Background**
   Celery cli provides a nice interface to launch workers and stop them. This 
cli setup works very well when there is one worker running on node without a 
custom PID specified. But if a worker is launched with custom `--pid` file then 
`airflow celery stop` command is not capable of stopping the worker. In our 
setup, we run multiple workers on same node subscribed to different queues. The 
only way to stop worker is to provide `SIGTERM`, which isn't always the best 
strategy as it is not always graceful.
   
   **Changes made**
   Add an additional argument to the `airflow celery stop` command, `--pid`. If 
this argument is present then the cli will kill worker associated with pid 
present in specified pidfile.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to