gpt4 book ai didi

python - Celeryd 在 django 中无法正常运行

转载 作者:行者123 更新时间:2023-12-01 06:50:01 25 4
gpt4 key购买 nike

大约 1 个月的时间 celeryd 工作正常,但现在我注意到 celeryd 已停止工作。我尝试重新启动 celery 但出现错误。

下面是我尝试启动 celery 的命令...

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 ?

注意:celery 作为守护进程运行

最佳答案

正如您所说,celeryd 正在后台工作,您必须首先停止或终止该进程。

ps aux|grep celeryd

此命令将返回:

根 **12717** 0.0 0.0 21536 1076 点/3 S+ 12:24 0:00 grep --color=auto celeryd

这里 12717 是 celeryd 的进程 ID。您可以使用以下命令终止该进程:

sudo Kill -9 PROCESS-ID

运行 ps aux|grep celeryd 以确保进程被终止,并且不会启动其他进程。

现在运行sudo service celeryd start

关于python - Celeryd 在 django 中无法正常运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59064023/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com