Browse Source

Result: .forget() should also clear local cache

Ask Solem 11 years ago
parent
commit
bb5194295e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      celery/result.py

+ 1 - 0
celery/result.py

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