ashb commented on a change in pull request #15034:
URL: https://github.com/apache/airflow/pull/15034#discussion_r602476791



##########
File path: docs/apache-airflow/concepts.rst
##########
@@ -1128,6 +1128,14 @@ This animated gif shows the UI interactions. TaskGroups 
are expanded or collapse
 .. image:: img/task_group.gif
 
 
+TaskGroup can be created using ``@taskgroup`` decorator, it takes one 
mandatory argument ``group_id`` which is same as constructor of TaskGroup 
class, if not given it copies function name as ``group_id``. It works exactly 
same as creating TaskGroup using context manager ``with TaskGroup('groupid') as 
section:``.

Review comment:
       ```suggestion
   TaskGroup can be created using ``@task?group`` decorator, it takes one 
mandatory argument ``group_id`` which is same as constructor of TaskGroup 
class, if not given it copies function name as ``group_id``. It works exactly 
same as creating TaskGroup using context manager ``with TaskGroup('groupid') as 
section:``.
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to