소스 검색

Remove gc.collect experiment

Ask Solem 11 년 전
부모
커밋
9f578224b6
1개의 변경된 파일0개의 추가작업 그리고 5개의 파일을 삭제
  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