Starting Celery with supervisord: AttributeError: 'module' object has no attribute 'celery'
问题 I used to have all my Flask app code and celery code in one file and it worked fine with supervisor. However, it is very hair so I split my tasks to celery_tasks.py and this problem occurs. In my project directory, I can start celery manually with the following command celery -A celery_tasks worker --loglevel=INFO However, because this is a server, I need celery to run as a daemon in background. But it shows following error when I called sudo supervisorctl restart celeryd celeryd: ERROR