Skip to content

Replacing usage of consuming_dags with scheduled_dags in AssetAliasModel queries #51864

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

Merged
merged 1 commit into from
Jun 18, 2025

Conversation

amoghrajesh
Copy link
Contributor

@amoghrajesh amoghrajesh commented Jun 18, 2025

Seems an occurrence was missed while migrating in #51424. consuming_dags doesn't exist anymore.

This is causing CI failures:

FAILED airflow-core/tests/unit/jobs/test_scheduler_job.py::TestSchedulerJob::test_create_dag_runs_assets - AttributeError: type object 'AssetAliasModel' has no attribute 'consuming_dags'
FAILED airflow-core/tests/unit/jobs/test_scheduler_job.py::TestSchedulerJob::test_create_dag_runs_asset_alias_with_asset_event_attached - AttributeError: type object 'AssetAliasModel' has no attribute 'consuming_dags'
XPASS airflow-core/tests/unit/jobs/test_scheduler_job.py::TestSchedulerJob::test_do_not_schedule_removed_task - This test does not verify anything; no time to fix; see notes below

https://github.com/apache/airflow/actions/runs/15723344151/job/44308729314


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

@amoghrajesh amoghrajesh requested review from ashb and XD-DENG as code owners June 18, 2025 05:14
@boring-cyborg boring-cyborg bot added the area:Scheduler including HA (high availability) scheduler label Jun 18, 2025
@amoghrajesh amoghrajesh requested a review from uranusjr June 18, 2025 05:14
@potiuk potiuk merged commit 341c773 into apache:main Jun 18, 2025
53 checks passed
RoyLee1224 pushed a commit to RoyLee1224/airflow that referenced this pull request Jun 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Scheduler including HA (high availability) scheduler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants