abhishekbhakat commented on code in PR #58111:
URL: https://github.com/apache/airflow/pull/58111#discussion_r2523396796
##########
airflow-core/src/airflow/jobs/scheduler_job_runner.py:
##########
@@ -1594,6 +1594,15 @@ def _mark_backfills_complete(self, session: Session =
NEW_SESSION) -> None:
for b in backfills:
b.completed_at = now
+ def _safe_get_dag(self, dag_model: DagModel, purpose: str, session:
Session) -> SerializedDAG | None:
+ """Safely get a DAG, logging errors if loading fails."""
+ try:
+ return _get_current_dag(dag_id=dag_model.dag_id, session=session)
Review Comment:
modified `_get_current_dag`
--
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]