瀏覽代碼

Chord error handler should account for anon-task (Issue #3461)

Ask Solem 8 年之前
父節點
當前提交
bc3e272f72
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      celery/backends/base.py

+ 4 - 1
celery/backends/base.py

@@ -193,7 +193,10 @@ class Backend(object):
         # need below import for test for some crazy reason
         from celery import group  # pylint: disable
         app = self.app
-        backend = app._tasks[callback.task].backend
+        try:
+            backend = app._tasks[callback.task].backend
+        except KeyError:
+            backend = self
         try:
             group(
                 [app.signature(errback)