Explorar o código

Result: .forget() should also clear local cache

Ask Solem %!s(int64=11) %!d(string=hai) anos
pai
achega
143b22a7af
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      celery/result.py

+ 1 - 0
celery/result.py

@@ -96,6 +96,7 @@ class AsyncResult(ResultBase):
 
 
     def forget(self):
     def forget(self):
         """Forget about (and possibly remove the result of) this task."""
         """Forget about (and possibly remove the result of) this task."""
+        self._cache = None
         self.backend.forget(self.id)
         self.backend.forget(self.id)
 
 
     def revoke(self, connection=None, terminate=False, signal=None,
     def revoke(self, connection=None, terminate=False, signal=None,