jason810496 commented on code in PR #45961:
URL: https://github.com/apache/airflow/pull/45961#discussion_r1964626098
##########
providers/openlineage/tests/unit/openlineage/plugins/test_adapter.py:
##########
@@ -605,9 +606,8 @@ def test_emit_dag_started_event(mock_stats_incr,
mock_stats_timer, generate_stat
"dag_id": "dag_id",
"data_interval_start": event_time.isoformat(),
"data_interval_end": event_time.isoformat(),
- "external_trigger": False if AIRFLOW_V_3_0_PLUS else None,
"run_id": run_id,
- "run_type": None,
+ "run_type": DagRunType.MANUAL if AIRFLOW_V_3_0_PLUS else None,
Review Comment:
Thanks for the reminder, just resolved.
##########
providers/standard/src/airflow/providers/standard/operators/latest_only.py:
##########
@@ -53,8 +54,8 @@ def choose_branch(self, context: Context) -> str |
Iterable[str]:
# If the DAG Run is externally triggered, then return without
# skipping downstream tasks
dag_run: DagRun = context["dag_run"] # type: ignore[assignment]
- if dag_run.external_trigger:
- self.log.info("Externally triggered DAG_Run: allowing execution to
proceed.")
+ if dag_run.run_type != DagRunType.SCHEDULED:
Review Comment:
Thanks for the reminder, just resolved.
--
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]