[AIP-34] TaskGroup: A UI task grouping concept as an alternative to SubDagOperator #11119
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is cherry-picked from #10153. It makes
TaskGroup
work with v1-10-test so that we can encourage more people to start usingTaskGroup
.(
TaskMixin
was also cherry-picked from #10930).Limitations:
www_rbac/views.py
andgraph.html
works withTaskGroup
. So users will only be use TaskGroup in Graph View if they haverbac = True
under[webserver]
inairflow.cfg
. This is becausewww/views.py
and graph.html has too many differences against the master branch, making it hard to merge. IfTaskGroup
is used in DAGs but the webserver is not rbac, the Graph View will not break, it'll just appear likeTaskGroup
was never used. All tasks will appear on the original DAG normally.This was the original commit message in #10153:
This PR introduces
TaskGroup
, which is a simple UI task grouping concept.What this PR does:
>>
and<<
operatorsWhat this PR does not do:
SubDagOperator
. AlthoughTaskGroup
is intended as an alternative forSubDagOperator
, deprecatingSubDagOperator
will need to be discussed/implemented in the future.TaskGroup
handling in the Graph View. In places such as Tree View, it will look like as-ifTaskGroup
does not exist and all tasks are in the same flat DAG.GitHub Issue: #8078
AIP: https://cwiki.apache.org/confluence/display/AIRFLOW/AIP-34+TaskGroup%3A+A+UI+task+grouping+concept+as+an+alternative+to+SubDagOperator
This is the example_task_group that this PR adds: