Explorar o código

Remove gc.collect experiment

Ask Solem %!s(int64=11) %!d(string=hai) anos
pai
achega
9f578224b6
Modificáronse 1 ficheiros con 0 adicións e 5 borrados
  1. 0 5
      celery/concurrency/processes.py

+ 0 - 5
celery/concurrency/processes.py

@@ -18,7 +18,6 @@
 from __future__ import absolute_import
 
 import errno
-import gc
 import os
 import select
 import socket
@@ -576,10 +575,6 @@ class TaskPool(BasePool):
                 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
         self._discard_tref = _discard_tref