Django celery warnings about .DEBUG settings

I have some questions regarding starting djcelery.

When i started

python manage.py celeryd --setting=settings 

The workers seem to have started, but the warnings bother 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! 

Google is for this warning, but no one seems to care about it. Should I be bothered?

Thank you so much!

+8
django django-celery
source share
2 answers

This is what he says - a warning that settings.DEBUG should not be set for production deployments. If you just use it for development, then there is nothing to worry about. In general, this should apply whether you use django-celery or not.

I was not looking for details, but as mentioned in this answer :

If the DEBUG parameter is enabled, Django adds every executed SQL statement to django.db.connection.queries , this will expand unlimitedly in a long working environment.

+12
source share

The officially recommended way to start celery for django-celery is:

 python manage.py celeryd --setting=settings 

Today I forgot about it and immediately started using celery

 python -m celery.bin.celeryd --config=settings 

and viola, no warnings! And it works great! The Celery group really needs to work on their documents. Although this seems to be comprehensive, some key parts are missing to cover all the imho grounds.

+1
source share

All Articles