Explorar o código

do not destroy connection to mongo

Valentyn Klindukh %!s(int64=9) %!d(string=hai) anos
pai
achega
bc373013d8
Modificáronse 1 ficheiros con 0 adicións e 8 borrados
  1. 0 8
      celery/backends/mongodb.py

+ 0 - 8
celery/backends/mongodb.py

@@ -162,14 +162,6 @@ class MongoBackend(BaseBackend):
 
         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):
         if self.serializer == 'bson':
             # mongodb handles serialization