(self)
| 187 | time.sleep(check_interval) |
| 188 | |
| 189 | def shutdown(self) -> None: |
| 190 | self.stop = True |
| 191 | # if `self.system.shutdown()` is called before self.start(), it will fail. |
| 192 | if hasattr(self, "api"): |
| 193 | self.api.shutdown() |
| 194 | if hasattr(self, "reporter_agent"): |
| 195 | self.reporter_agent.shutdown() |
| 196 | if hasattr(self, "system"): |
| 197 | self.system.shutdown() |
| 198 | |
| 199 | |
| 200 | def handler(signum: Any, frame: Any, t_mgr: "NodeProxyManager") -> None: |