Browse Source

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

Ask Solem 11 years ago
parent
commit
cb874d5bde
1 changed files with 4 additions and 0 deletions
  1. 4 0
      celery/canvas.py

+ 4 - 0
celery/canvas.py

@@ -471,6 +471,10 @@ 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
 class chord(Signature):