ephraimbuddy commented on a change in pull request #17819:
URL: https://github.com/apache/airflow/pull/17819#discussion_r702052830
##########
File path: airflow/jobs/scheduler_job.py
##########
@@ -596,13 +597,26 @@ def _process_executor_events(self, session: Session =
None) -> int:
)
self.log.error(msg, ti, state, ti.state, info)
+ try:
+ get_dag(self.subdir, ti.dag_id)
+ except AirflowException:
+ self.log.error(
+ "Cannot load the dag bag to handle failure for %s"
+ ". Setting task to FAILED without callbacks or "
+ "retries. Do you have enough resources?",
+ ti,
+ )
+ ti.set_state(State.FAILED)
+ session.merge(ti)
+ session.commit()
+ continue
+
Review comment:
Borrowed from 1.10.x
--
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]