소스 검색

Merge pull request #2993 from vklindukh/master

do not destroy connection to mongo #2992
Ask Solem Hoel 9 년 전
부모
커밋
a0ca38289b
1개의 변경된 파일0개의 추가작업 그리고 8개의 파일을 삭제
  1. 0 8
      celery/backends/mongodb.py

+ 0 - 8
celery/backends/mongodb.py

@@ -162,14 +162,6 @@ class MongoBackend(BaseBackend):
 
 
         return self._connection
         return self._connection
 
 
-    def process_cleanup(self):
-        if self._connection is not None:
-            # MongoDB connection will be closed automatically when object
-            # goes out of scope
-            del(self.collection)
-            del(self.database)
-            self._connection = None
-
     def encode(self, data):
     def encode(self, data):
         if self.serializer == 'bson':
         if self.serializer == 'bson':
             # mongodb handles serialization
             # mongodb handles serialization