Python Celeryd在django中运行不正常
大约一个月以来,celeryd一直工作正常,但现在我注意到celeryd已经停止工作了。 我试图重新启动芹菜,但它给出了错误 下面是我试图启动芹菜的命令Python Celeryd在django中运行不正常,python,linux,celery,daemon,Python,Linux,Celery,Daemon,大约一个月以来,celeryd一直工作正常,但现在我注意到celeryd已经停止工作了。 我试图重新启动芹菜,但它给出了错误 下面是我试图启动芹菜的命令 Command1 : service celeryd status Response1 : celeryd (node worker1) (pid 4806) is stopped, but pid file exists! Command2 : service celeryd start Response : Stale pidfile e
Command1 : service celeryd status
Response1 : celeryd (node worker1) (pid 4806) is stopped, but pid file exists!
Command2 : service celeryd start
Response : Stale pidfile exists. Removing it
Command3 : service celeryd stop
Response : celery multi v3.1.25 (Cipater)
worker1: DOWN
谁能说出这背后的问题是什么?
如何重新启动celeryd
注意:芹菜是作为守护进程运行的您有一个典型的错误,进程在次要部分运行,这是正常的,在坏关闭的情况下,您不应该手动终止进程
kill -9 4806
尝试并重新启动centry守护进程
sudo systemctl reload celeryd
我希望我能帮助你正如你所说,celeryd在后台工作,你必须先停止或终止这个过程
ps aux| grep celeryd
此命令将返回:
root**12717**0.0 0.0 21536 1076 pts/3 S+12:24 0:00 grep--color=auto-celeryd
这里12717是celeryd的进程ID。您可以使用以下命令终止进程:
sudo kill-9进程ID
运行ps aux | grep celeryd
以确保进程被终止,并且没有其他进程以相同的方式启动
现在运行
sudo service celeryd start
首先检查日志。这是什么Linux发行版?日志中没有错误,系统在ubuntu@Selcuk上运行