Questions tagged «celery»

3
使用芹菜运行多个工人
我需要从Rabbitmq中读取并使用Celery在单个系统中并行执行任务。 [2014-12-30 15:54:22,374: INFO/Worker-1] ... [2014-12-30 15:54:23,401: INFO/Worker-1] ... [2014-12-30 15:54:30,878: INFO/Worker-1] ... [2014-12-30 15:54:32,209: INFO/Worker-1] ... [2014-12-30 15:54:33,255: INFO/Worker-1] ... [2014-12-30 15:54:48,445: INFO/Worker-1] ... [2014-12-30 15:54:49,811: INFO/Worker-1] ... [2014-12-30 15:54:50,903: INFO/Worker-1] ... [2014-12-30 15:55:39,674: INFO/Worker-1] ... [2014-12-30 15:55:41,024: INFO/Worker-1] ... [2014-12-30 15:55:42,147: INFO/Worker-1] ... 它仅接缝始终有一名工人在运行..即,依次接一个接一个地工作。如何配置Celery以运行多个工作程序以并行运行?
11 python  celery 

1
Celery Daemon接收未注册的任务
我按照官方教程/ doc的说明为Django项目安装了Celery。当我在命令行启动celery时,它工作正常,我可以看到它接收任务并执行它们。但是,一旦一切正常,我决定再跟随一些文档来守护芹菜并使其始终保持运行状态。因此,我也在Ubuntu系统上使用/ etc / default / celeryd脚本尝试了提供的celeryd初始化脚本。我相应地更改了值,它可以正确启动,但是当它收到任务时,日志会显示: ERROR/MainProcess] Received unregistered task of type 'likes.tasks.test'. The message has been ignored and discarded. Did you remember to import the module containing this task? Or maybe you are using relative imports? Please see http://bit.ly/gLye1c for more information. 然后,我获得了任务要求的详细信息。同样,当我在命令行上启动celery且未进行任何配置时,此任务将完美运行。那时可能出了什么问题?我使用虚拟环境以防万一它会更改任何内容,但是我也在配置文件中指定了它。
9 ubuntu  django  celery 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.