-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AIP-34] TaskGroup: A UI task grouping concept as an alternative to SubDagOperator #10153
Conversation
f2b78fe
to
ad6071a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should think about how will this be supported in the new rest api so one can easily rebuild the same feature in a new UI.
Hi @houqp Thanks for the suggestions. I think you bring up a good point. Currently |
@yuqian90 I think that's a good approach, this extra meta data needs to be added to more than one endpoint i think, but we can start with |
@houqp thanks for your review. Here are the changes since your last review.
|
Thanks for the PR, I will definitely take a look at it since Airflow 1.10.12 is released :) |
Thanks @yuqian90 for the update, I left one comment around a change that I think we should be more careful about, the rest looks good to me 👍 would love to hear about other people's opinions on this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs good documentation coverage too
857fb63
to
42c9931
Compare
Thanks. I added a section here: |
Do you mind elaborate a bit more on the impact to TreeView please? Would it be rendered just like the subdag operators? Thanks. |
At the current implementation of this PR, the Tree View is not touched. In other words, the grouping is only relevant in Graph View. The Tree View will look like all tasks, including the ones in nested TaskGroups are on the same DAG (because that's what they are under the hood). That said, we can always improve on it and create the grouping in Tree View too. |
deae87b
to
23e22ef
Compare
Hi, @houqp and reviewers, here are the latest changes since you last reviewed:
This is what |
Set prefix_group_id=True by default
fa76596
to
85c9f67
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yuqian90 Heck yes!!! I'm so excited for this 🙌 |
Is anyone interested in using TaskGroup in the next 1.10.* release? We can contribute our own cherry-picked commit too for v1-10-test since we are going to use it anyway ourselves. |
I think this would be great, so that people could test this before. |
…ubDagOperator apache#10153 - Introduce TaskMixin (apache#10930) - Test updates
…ubDagOperator apache#10153 (cherry picked from commit 49c193f)
…ubDagOperator apache#10153 (cherry picked from commit 49c193f)
Its a nice feature any idea when it'll be available(GA release)? |
in Airflow 2.0 -- by the end of this year |
…ubDagOperator apache#10153 (cherry picked from commit 49c193f)
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: