浏览代码

Avoid gc.collect

Ask Solem 12 年之前
父节点
当前提交
737c4b67b8
共有 1 个文件被更改,包括 0 次插入4 次删除
  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 = trefs.pop(job)
                 tref.cancel()
                 tref.cancel()
                 del(tref)
                 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):
             except (KeyError, AttributeError):
                 pass  # out of scope
                 pass  # out of scope