예제 #1
0
    def shutdown(self) -> Shutdown:
        self.logger.debug("Shutting down...")
        self.shutdown_event.set()
        try:
            self.dry_run_thread.join(timeout=20)
        except TimeoutError as e:
            self.logger.error(e)

        self.logger.debug("Shutdown complete")
        return Shutdown()
예제 #2
0
    def shutdown(self) -> Shutdown:
        self.logger.debug("Shutting down...")
        self.shutdown_event.set()
        try:
            self.device_setter_thread.join(timeout=20)
        except TimeoutError as e:
            self.logger.error(e)

        for ft in self.forward_worker_threads.values():
            try:
                ft.join(timeout=20)
            except TimeoutError as e:
                self.logger.error(e)

        self.logger.debug("Shutdown complete")
        return Shutdown()
예제 #3
0
 def shutdown(self) -> Future:
     return Shutdown()
예제 #4
0
 def shutdown(self) -> RPCFuture[Shutdown]:
     raise Shutdown()
예제 #5
0
 def shutdown(self) -> Shutdown:
     self._executor.stop()
     return Shutdown()
예제 #6
0
 def shutdown(self) -> Shutdown:
     return Shutdown()
예제 #7
0
 def shutdown(self) -> Shutdown:
     self._worker.shutdown()
     return Shutdown()