用芹菜安装supervisord时出现问题

2024-05-13 18:27:17 发布

您现在位置:Python中文网/ 问答频道 /正文

我在ubuntuec2节点上有一个Django项目,我一直在使用Celery来设置异步。在

我正在跟踪http://michal.karzynski.pl/blog/2014/05/18/setting-up-an-asynchronous-task-queue-for-django-using-celery-redis/以及文档。我还看了Run a celery worker in the background。和http://thomassileo.com/blog/2012/08/20/how-to-keep-celery-running-with-supervisor/

在/etc/supervisor/conf.d/tp中-芹菜.conf我有:

[program:tp-celery]
command=/home/ubuntu/projects/tp celery --app=tp.celery:app worker --loglevel=INFO
directory=/home/ubuntu/projects/tp
user=ubuntu
numprocs=1
stdout_logfile=/var/log/celery-worker.log
stderr_logfile=/var/log/celery-worker.log
autostart=true
autorestart=true
startsecs=10

现在我得到如下指示:

^{pr2}$

我做错什么了?在


Tags: logtrueapphttphomevarubuntuconf