Ask Solem %!s(int64=10) %!d(string=hai) anos
pai
achega
daf70d42ca
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      celery/app/builtins.py
  2. 1 1
      celery/result.py

+ 1 - 1
celery/app/builtins.py

@@ -332,7 +332,7 @@ def add_chord_task(app):
             if eager:
                 return header.apply(args=partial_args, task_id=group_id)
 
-            body.chord_size = len(header.tasks)
+            body['chord_size'] = len(header.tasks)
             results = header.freeze(group_id=group_id, chord=body).results
 
             return self.backend.apply_chord(

+ 1 - 1
celery/result.py

@@ -340,7 +340,7 @@ class AsyncResult(ResultBase):
         return self._cache
 
     def _set_cache(self, d):
-        state, children = d['status'], d.get('children')
+        children = d.get('children')
         if children:
             d['children'] = [
                 result_from_tuple(child, self.app) for child in children