Django Celery 在启动时避免崩溃

发布于 2024-10-05 18:33:46 字数 351 浏览 0 评论 0原文

我最近用 RabbitMQ 和 Celery 配置了一个新服务器。当我尝试在机器上启动 Celerybeat 时,它会启动几秒钟然后停止。我已授予日志文件正确的权限,并将所有者更改为应用程序用户。我还检查了 celerybeat.log 文件,没有记录任何错误。

我尝试在项目文件夹中以这种方式启动它:

./manage.py celerybeat

我收到了此错误:

[2010-12-01 09:59:46,127: INFO/MainProcess] process shutting down

有人可以在这里为我指出正确的方向吗?

I have recently configured a new server with RabbitMQ and Celery. When I try to start Celerybeat on the machine it starts for a few seconds and stops. I have given right permissions to the log files and changed the owners to the Application user. I have also checked the celerybeat.log file and NO errors are registered.

I tried to start it this way in the project folder:

./manage.py celerybeat

And I got this error:

[2010-12-01 09:59:46,127: INFO/MainProcess] process shutting down

Could someone please point me in the right direction here.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情话已封尘 2024-10-12 18:33:46

我认为要做的第一件事是启动它,通过使用基本命令 celeryd 向您显示控制台中的所有输出。
尝试一下

python manage.py celeryd -B -l DEBUG

,我知道如果您使用旧版本的 python(低于 2.6)启动 celery,则最近更新的 celery 会出现日志文件问题。

First thing to do in my opinion and launch it for show you all the output in console and by using the base command celeryd.
Try

python manage.py celeryd -B -l DEBUG

I know that a recent update of celery have problem with log files if you launch it with an old version of python (less than 2.6).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文