我正在尝试在Ubuntu上使用Supervisord运行Celery,但是得到:
INFO exited: celery (exit status 2; not expected)
INFO spawned: 'celery' with pid 15517
INFO gave up: celery entered FATAL state, too many start retries too
quickly
这是Supervisord脚本:
cd into the directory and activate the virtual environment
celery -A [APP_NAME].celery worker -E -l info --concurrency=2
如果我手动运行此脚本,Celery会启动,没有任何问题。但是运行sudo supervisorctl start celery
时会出现上述错误消息而导致错误。