Example #1
0
 def _stop_dag_run(self, dag_run: DagRun):
     dag_run.stop_dag_run()
     for ti in dag_run.get_task_instances():
         if ti.state in State.unfinished:
             self.executor.schedule_task(ti.key, SchedulingAction.STOP)
     self.mailbox.send_message(
         DagRunFinishedEvent(run_id=dag_run.run_id).to_event())
Example #2
0
 def _stop_dag_run(self, dag_run: DagRun):
     dag_run.stop_dag_run()
     for ti in dag_run.get_task_instances():
         if ti.state in State.unfinished:
             self.executor.schedule_task(ti.key, SchedulingAction.STOP)