Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

Commit

Permalink
[AIRFLOW-6910] Fix kill_zombie method call (apache#7531)
Browse files Browse the repository at this point in the history
  • Loading branch information
mik-laj authored and galuszkak committed Mar 5, 2020
1 parent 580a7f5 commit 2001ed6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions airflow/jobs/scheduler_job.py
Expand Up @@ -741,7 +741,7 @@ def kill_zombies(self, dagbag, zombies, session=None):
had a heartbeat for too long, in the current DagBag.
:param zombies: zombie task instances to kill.
:type zombies: List[airflow.models.taskinstance.SimpleyTaskInstance]
:type zombies: List[airflow.models.taskinstance.SimpleTaskInstance]
:param session: DB session.
"""
TI = models.TaskInstance
Expand Down Expand Up @@ -877,7 +877,7 @@ def process_file(self, file_path, zombies, pickle_dags=False, session=None):
except Exception:
self.log.exception("Error logging import errors!")
try:
self.kill_zombies(zombies)
self.kill_zombies(dagbag, zombies)
except Exception:
self.log.exception("Error killing zombies!")

Expand Down

0 comments on commit 2001ed6

Please sign in to comment.