Shutdown the vw process
(self)
| 202 | self.raw_predictions_thread_running = True |
| 203 | |
| 204 | def close(self): |
| 205 | """Shutdown the vw process |
| 206 | """ |
| 207 | if not self.vw is None: |
| 208 | f=open(self.pid_file) |
| 209 | for line in f: |
| 210 | logger.info("terminating pid %s",line) |
| 211 | p = psutil.Process(int(line)) |
| 212 | p.terminate() |
| 213 | self.vw.close() |
| 214 | self.vw = None |
| 215 | |
| 216 | |
| 217 | def _tail_forever(self,fn): |
no outgoing calls