django-celery warnings about settings.DEBUG

airfang picture airfang · Dec 8, 2011 · Viewed 7.6k times · Source

I have some questions regarding running djcelery.

When I run

python manage.py celeryd --setting=settings

The workers seem to have started but the warnings concern me:

C:\Python27\lib\site-packages\djcelery\loaders.py:86: UserWarning: Using settings.DEBUG leads to a memory leak, never use this setting in production environments!

Googled for this warning message but no one seems to care about it. Should I be concerned?

Thanks a lot!

Answer

Shawn Chin picture Shawn Chin · Dec 8, 2011

It is what it says it is - a warning that settings.DEBUG should not be set for production deployments. If you're just using it for development, then it is not something to be concerned about. In general, this ought to apply whether you use django-celery or not.

I have not looked up the details, but as mentioned in this answer:

When DEBUG is enabled Django appends every executed SQL statement to django.db.connection.queries, this will grow unbounded in a long running process environment.