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(dag): avoid getting dataset next run info for unresolved dataset alias #41828

Conversation

Lee-W
Copy link
Member

@Lee-W Lee-W commented Aug 28, 2024

Why

In #41453, we change the condition to get dataset next run info from self.schedule_interval != "Dataset" to self.dataset_expression is None: which won't work for "Unresolved Dataset Alias" as they don't have dataset info to get yet.

What

Do not get dataset next run info if it's an unresolved dataset alias


^ 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 newsfragments.

airflow/models/dag.py Outdated Show resolved Hide resolved
@Lee-W Lee-W force-pushed the avoid-getting-dataset-next-run-info-for-unresolved-dataset branch 2 times, most recently from eabcedb to 65b373e Compare September 4, 2024 01:05
@Lee-W Lee-W requested a review from sunank200 September 6, 2024 00:46
@Lee-W Lee-W requested a review from uranusjr September 18, 2024 02:48
@Lee-W Lee-W mentioned this pull request Sep 18, 2024
2 tasks
Copy link
Member

@uranusjr uranusjr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this have a test?

@Lee-W Lee-W force-pushed the avoid-getting-dataset-next-run-info-for-unresolved-dataset branch from 65b373e to 566b68b Compare September 20, 2024 07:21
@Lee-W Lee-W force-pushed the avoid-getting-dataset-next-run-info-for-unresolved-dataset branch from 566b68b to 232215d Compare September 20, 2024 07:26
@Lee-W
Copy link
Member Author

Lee-W commented Sep 20, 2024

Should this have a test?

sounds good. just added it. will merge this one once CI passed

@Lee-W Lee-W merged commit a083930 into apache:main Sep 20, 2024
51 checks passed
@Lee-W Lee-W deleted the avoid-getting-dataset-next-run-info-for-unresolved-dataset branch September 20, 2024 08:17
joaopamaral pushed a commit to joaopamaral/airflow that referenced this pull request Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants