Skip to content

Commit 6d8e88c

Browse files
potiukdstandish
authored andcommitted
Add backcompat check for executors that don't inherit BaseExecutor (#41906) (#41927)
(cherry picked from commit f168d0a) Co-authored-by: Daniel Standish <[email protected]>
1 parent d177978 commit 6d8e88c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

airflow/jobs/scheduler_job_runner.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,6 +1135,9 @@ def _run_scheduler_loop(self) -> None:
11351135

11361136
for executor in self.job.executors:
11371137
try:
1138+
# this is backcompat check if executor does not inherit from BaseExecutor
1139+
if not hasattr(executor, "_task_event_logs"):
1140+
continue
11381141
with create_session() as session:
11391142
self._process_task_event_logs(executor._task_event_logs, session)
11401143
except Exception:

0 commit comments

Comments
 (0)