Send termination signal to DAG parsing processor manager and expect it to terminate all DAG file processors.
(self)
| 431 | return self._all_files_processed |
| 432 | |
| 433 | def terminate(self): |
| 434 | """ |
| 435 | Send termination signal to DAG parsing processor manager |
| 436 | and expect it to terminate all DAG file processors. |
| 437 | """ |
| 438 | if self._process and self._process.is_alive(): |
| 439 | self.log.info("Sending termination message to manager.") |
| 440 | try: |
| 441 | self._parent_signal_conn.send(DagParsingSignal.TERMINATE_MANAGER) |
| 442 | except ConnectionError: |
| 443 | pass |
| 444 | |
| 445 | def end(self): |
| 446 | """ |
no test coverage detected