Explorar el Código

"settings.DEBUG leads to memory leak" warning is Django-specific so moved to django-celery

Ask Solem hace 14 años
padre
commit
2ff2183791
Se han modificado 1 ficheros con 0 adiciones y 4 borrados
  1. 0 4
      celery/apps/worker.py

+ 0 - 4
celery/apps/worker.py

@@ -80,10 +80,6 @@ class Worker(object):
         self.redirect_stdouts_to_logger()
         print("celery@%s v%s is starting." % (self.hostname, __version__))
 
-        if getattr(self.settings, "DEBUG", False): # XXX
-            warnings.warn("Using settings.DEBUG leads to a memory leak, "
-                    "never use this setting in a production environment!")
-
         if self.discard:
             self.purge_messages()