Skip to content
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

Fix cycle bug with attaching label to task group #24847

Merged
merged 1 commit into from
Jul 5, 2022

Conversation

ashb
Copy link
Member

@ashb ashb commented Jul 5, 2022

The problem was specific to EdgeModifiers as they try to be
"transparent" to upstream/downstream

The fix is to set track the upstream/downstream for the task group
before making any changes to the EdgeModifiers' relations -- otherwise
the roots of the TG were added as dependencies to themeslves!

Fixes #19785

image

The problem was specific to EdgeModifiers as they try to be
"transparent" to upstream/downstream

The fix is to set track the upstream/downstream for the task group
before making any changes to the EdgeModifiers' relations -- otherwise
the roots of the TG were added as dependencies to themeslves!
@ashb ashb requested a review from uranusjr July 5, 2022 15:01
@ashb ashb added this to the Airflow 2.3.3 milestone Jul 5, 2022
@jedcunningham jedcunningham added the type:bug-fix Changelog: Bug Fixes label Jul 5, 2022
@potiuk
Copy link
Member

potiuk commented Jul 5, 2022

Did we have DCG instad of DAG for a short while :) ?

@ashb ashb merged commit efc05a5 into apache:main Jul 5, 2022
@ashb ashb deleted the task-group-label-cycle branch July 5, 2022 15:40
@ashb
Copy link
Member Author

ashb commented Jul 5, 2022

Only in this one specific edge case where you do [Label()] >> tg -- Label() >> tg was fine.

ephraimbuddy pushed a commit that referenced this pull request Jul 5, 2022
The problem was specific to EdgeModifiers as they try to be
"transparent" to upstream/downstream

The fix is to set track the upstream/downstream for the task group
before making any changes to the EdgeModifiers' relations -- otherwise
the roots of the TG were added as dependencies to themeslves!

(cherry picked from commit efc05a5)
@rvatsastro
Copy link

Verified
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Applying labels to task groups shows a cycle in the graph view for the dag
5 participants