Browse Source

Remove gc.collect experiment

Ask Solem 11 years ago
parent
commit
9f578224b6
1 changed files with 0 additions and 5 deletions
  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