Skip to content

Commit

Permalink
Add backcompat check for executors that don't inherit BaseExecutor (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
dstandish authored Sep 1, 2024
1 parent 9cfc6df commit f168d0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions airflow/jobs/scheduler_job_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1144,6 +1144,9 @@ def _run_scheduler_loop(self) -> None:

for executor in self.job.executors:
try:
# this is backcompat check if executor does not inherit from BaseExecutor
if not hasattr(executor, "_task_event_logs"):
continue
with create_session() as session:
self._process_task_event_logs(executor._task_event_logs, session)
except Exception:
Expand Down

0 comments on commit f168d0a

Please sign in to comment.