(self)
| 302 | super()._handle_signals(signum, sigframe) |
| 303 | |
| 304 | def close(self): |
| 305 | if self._closing: |
| 306 | return |
| 307 | self._closing = True |
| 308 | if self.process_manager is None: |
| 309 | return |
| 310 | self.process_manager.terminate() |
| 311 | if hasattr(self.pub_server_channel, "close"): |
| 312 | self.pub_server_channel.close() |
| 313 | # Really terminate any process still left behind |
| 314 | for pid in self.process_manager._process_map: |
| 315 | terminate_process(pid=pid, kill_children=True, slow_stop=False) |
| 316 | self.process_manager = None |
| 317 | |
| 318 | def publish(self, payload): |
| 319 | self.queue.put(payload) |
no test coverage detected