How to stop celery worker process

后端 未结 4 1654
耶瑟儿~
耶瑟儿~ 2021-01-30 04:14

I have a Django project on an Ubuntu EC2 node, which I have been using to set up an asynchronous using Celery.

I am following this along with the docs.

4条回答
  •  长发绾君心
    2021-01-30 05:10

    ps auxww | grep 'celery worker' | grep -v " grep " | awk '{print $2}' | xargs kill -9
    

    this one is very similar to one presented before but improved because avoid the error that shows when attempt to kill the grep process..

提交回复
热议问题