ashb commented on code in PR #49097:
URL: https://github.com/apache/airflow/pull/49097#discussion_r2044141669
##########
airflow-core/src/airflow/jobs/scheduler_job_runner.py:
##########
@@ -867,7 +921,14 @@ def process_executor_events(
# Get task from the Serialized DAG
try:
- dag = dag_bag.get_dag(ti.dag_id)
+ dag = scheduler_dag_bag.get_dag(dag_run=ti.dag_run,
session=session)
+ cls.logger().error(
+ "DAG '%s' for task instance %s not found in
serialized_dag table",
+ ti.dag_id,
+ ti,
+ )
Review Comment:
And since we want this in Rc3, better to be safe rather than blow up the
scheduler with an exception!
--
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]