소스 검색

Fixed "no such variable result" error in the database backends, get_result()
method.

Ask Solem 16 년 전
부모
커밋
1b98a82e6b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      celery/backends/database.py

+ 1 - 1
celery/backends/database.py

@@ -32,7 +32,7 @@ class Backend(BaseBackend):
         if meta.status == "FAILURE":
             return self.exception_to_python(meta.result)
         else:
-            return result
+            return meta.result
 
     def _get_task_meta_for(self, task_id):
         if task_id in self._cache: