henry3260 commented on code in PR #66488:
URL: https://github.com/apache/airflow/pull/66488#discussion_r3213258271
##########
airflow-core/src/airflow/dag_processing/collection.py:
##########
@@ -165,8 +168,11 @@ def _get_latest_runs_stmt_partitioned(dag_id: str) ->
Select:
load_only(
DagRun.dag_id,
DagRun.logical_date,
+ DagRun.run_after,
Review Comment:
> If I check the downstream references to `_get_latest_runs_stmt` and
`_get_latest_runs_stmt_partitioned` correct. They don't access `run_after` at
all.
Here is the exact flow:
1. `_RunInfo.calculate()` calls `_get_latest_runs_stmt()` to get the
`latest_run`.
2. `update_dags` passes this `latest_run` to calculate_dagrun_date_fields.
3. Inside `calculate_dagrun_date_fields`, it passes the run to
`run_info_from_dag_run`.
4. Finally, `run_info_from_dag_run()`explicitly accesses `dag_run.run_after`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]