Parcourir la source

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

Ask Solem il y a 8 ans
Parent
commit
bc3e272f72
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  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)