Explorar o código

Canvas: group.type should use app of first task. Closes #1516

Ask Solem %!s(int64=11) %!d(string=hai) anos
pai
achega
8649f223a4
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      celery/canvas.py

+ 5 - 0
celery/canvas.py

@@ -432,6 +432,11 @@ class group(Signature):
 
     def __repr__(self):
         return repr(self.tasks)
+
+    @property
+    def type(self):
+        return self._type or self.tasks[0].type.app.tasks[self['task']]
+
 Signature.register_type(group)