소스 검색

Result: .forget() should also clear local cache

Ask Solem 11 년 전
부모
커밋
bb5194295e
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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,