Only one heartbeat after all DAGs are enqueued

This commit is contained in:
Maxime Beauchemin 2015-05-17 17:57:28 -07:00
Родитель a414fd0324
Коммит e82accb783
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -313,8 +313,6 @@ class SchedulerJob(BaseJob):
session.merge(db_dag) session.merge(db_dag)
session.commit() session.commit()
logging.debug("Calling the executor's heartbeat")
executor.heartbeat()
session.close() session.close()
def _execute(self): def _execute(self):
@ -365,7 +363,9 @@ class SchedulerJob(BaseJob):
self.process_dag(dag, executor) self.process_dag(dag, executor)
except Exception as e: except Exception as e:
logging.exception(e) logging.exception(e)
logging.debug("Done scheduling all DAGs") logging.debug(
"Done qeuing tasks, calling the executor's heartbeat")
executor.heartbeat()
self.heartbeat() self.heartbeat()
executor.end() executor.end()