Skip to content

Commit

Permalink
Add backcompat check for executors that don't inherit BaseExecutor (#…
Browse files Browse the repository at this point in the history
…41906) (#41927)

(cherry picked from commit f168d0a)

Co-authored-by: Daniel Standish <[email protected]>
  • Loading branch information
2 people authored and utkarsharma2 committed Sep 2, 2024
1 parent d177978 commit 6d8e88c
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 @@ -1135,6 +1135,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 6d8e88c

Please sign in to comment.