浏览代码

Prepare exception to pickle when saving RETRY status.

Jerzy Kozera 15 年之前
父节点
当前提交
291507f0f6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      celery/backends/database.py

+ 1 - 1
celery/backends/database.py

@@ -34,7 +34,7 @@ class Backend(BaseBackend):
         """Store return value and status of an executed task."""
         if status == "DONE":
             result = self.prepare_result(result)
-        elif status == "FAILURE":
+        elif status in ["FAILURE", "RETRY"]:
             result = self.prepare_exception(result)
         TaskMeta.objects.store_result(task_id, result, status,
                                       traceback=traceback)