Browse Source

Avoid gc.collect

Ask Solem 11 years ago
parent
commit
737c4b67b8
1 changed files with 0 additions and 4 deletions
  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