瀏覽代碼

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):
         """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,