Django Celery 在启动时避免崩溃
我最近用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为要做的第一件事是启动它,通过使用基本命令 celeryd 向您显示控制台中的所有输出。
尝试一下
,我知道如果您使用旧版本的 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
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).