Explorar o código

Avoid gc.collect

Ask Solem %!s(int64=11) %!d(string=hai) anos
pai
achega
737c4b67b8
Modificáronse 1 ficheiros con 0 adicións e 4 borrados
  1. 0 4
      celery/worker/__init__.py

+ 0 - 4
celery/worker/__init__.py

@@ -131,10 +131,6 @@ class Pool(bootsteps.StartStopComponent):
                 tref = trefs.pop(job)
                 tref.cancel()
                 del(tref)
-                # Will not be reclaimed quickly enough on some platforms,
-                # so the memory is growing and still not released back to the
-                # OS.
-                gc.collect()
             except (KeyError, AttributeError):
                 pass  # out of scope