Posts

Showing posts with the label djcelery

Run celery as a daemon using root user in Ubuntu

In the latest stable version of celery (3.1.13), you cannot run a celery beat as a daemon (I used supervisord) using root user without a special environment variable. That special variable is C_FORCE_ROOT. So, in your supervisord configuration file, add this: ... environment=C_FORCE_ROOT="yes" ... This is not encouraged but in some cases like mine, I just need the system works, and avoiding any extra configuration.

How to solve the djcelery's "DatabaseError: no such table: myapp.celery_taskmeta" error

When I executed a celery task in my django project (South installed), I got this error: ... Programming Error ... DatabaseError: no such table: myapp.celery_taskmeta... ... The problem here is actually that South manages the djcelery tables. So, I need to migrate djcelery to it's new schema python manage.py migrate djcelery 0001 --fake python manage.py migrate djcelery python manage.py migrate djcelery 0002 --fake python manage.py migrate djcelery ... (try to do the fake migration until the error disappears. I had to do it 4 times (0004) in my case) Reference: http://stackoverflow.com/questions/6959702/why-are-celery-taskmeta-and-other-tables-not-being-created-when-running-a-syncdb