【发布时间】:2016-09-28 03:01:02
【问题描述】:
我用芹菜、主管和花
主管配置:
command=/web/venv/bin/python manage.py celeryd -E -l info -c 2 --maxtasksperchild=1 -Ofair
directory=/web/
stdout_logfile=/web/log/
redirect_stderr=true
user=web
killasgroup=true
stopasgroup=true
从 python shell 启动时的问题,任务运行非常快。如果来自芹菜,工作时间很长。我不知道什么问题。也许有人可以帮忙?
【问题讨论】:
-
花费太多时间后,执行是否会超时?
-
你使用哪个命令从 shell 运行?
-
@ArunG,是的,请超时
-
@AjayGupta 喜欢:` from project.tasks import test_task test_task() `
-
我认为与 venv (virtualenv) 相关的东西,路径可能!!
标签: python django celery django-celery supervisord