Ver código fonte

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

Ask Solem 8 anos atrás
pai
commit
bc3e272f72
1 arquivos alterados com 4 adições e 1 exclusões
  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)