【发布时间】:2014-09-11 16:15:11
【问题描述】:
- 不知道是a bug还是配置问题。
- 目标: 调试/修改 Celery 任务,而无需在每次进行小改动时手动重新启动 worker
所以我已经配置了 Celery+RabbitMQ。一切正常。
在celery -A proj worker --loglevel=debug 命令中添加了--autoreload 选项,并在此停止日志记录:
[2014-09-11 19:22:00,447: DEBUG/MainProcess] | Worker: Hub.register Autoreloader...
没有它:
[2014-09-11 19:37:34,316: DEBUG/MainProcess] | Worker: Hub.register Pool...
[2014-09-11 19:37:34,317: DEBUG/MainProcess] basic.qos: prefetch_count->16
[2014-09-11 19:37:36,275: DEBUG/MainProcess] pidbox received method enable_events() [reply_to:None ticket:None]
[2014-09-11 19:37:36,275: INFO/MainProcess] Events of group {task} enabled by remote.
其他一切都很好。 RabbitMQ 收到消息后
celery call tasks.update
有来自 Celery 的连接。它只是没有告诉 Celery 开始一项任务。
看起来像是连接问题,但我不知道是什么问题。
如果你能帮忙,请写。
【问题讨论】:
标签: python django rabbitmq celery django-celery