Skip to content

Conversation

@kacpermuda
Copy link
Contributor

When working on #57809 I missed support for one case. When only parent information is present in DagRun conf, it's used in DagRun parent run facet as parent and root. Currently, it's not propagated to task root - so in that case task's root is always DagRun, as before.

This PR fixes that, now the root in DagRun's parentRunFacet should always be the same as root in Task's parentRunFacet.

This is the test case that checks that specific scenario:
image


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@kacpermuda
Copy link
Contributor Author

@mobuchowski I think this is a bug, the task root should always be the same as dag root (even if the dagroot comes from using the parent info as there was no root explicitly specified). LMK if you think otherwise.

@kacpermuda kacpermuda force-pushed the fix-ol-dag-parent-facet branch from e2c23b0 to 88631c7 Compare November 17, 2025 18:13
@kacpermuda kacpermuda changed the title fix: root in parentRunFacet is not always sourced from dag run fix: task root in parentRunFacet is not always the same as in dag run Nov 17, 2025
@mobuchowski mobuchowski merged commit e73f5b4 into apache:main Nov 17, 2025
82 checks passed
@kacpermuda kacpermuda deleted the fix-ol-dag-parent-facet branch November 18, 2025 08:04
aaron-wolmutt pushed a commit to aaron-wolmutt/airflow that referenced this pull request Nov 20, 2025
Copilot AI pushed a commit to jason810496/airflow that referenced this pull request Dec 5, 2025
itayweb pushed a commit to itayweb/airflow that referenced this pull request Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants