MCPcopy Create free account
hub / github.com/SeldonIO/seldon-server / close

Method close

python/seldon/vw.py:204–214  ·  view source on GitHub ↗

Shutdown the vw process

(self)

Source from the content-addressed store, hash-verified

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):

Callers 15

_start_vw_if_neededMethod · 0.95
test_sklearn_pipelineMethod · 0.95
test_create_featuresMethod · 0.95
test_predictionsMethod · 0.95
test_dict_featureMethod · 0.95
test_list_featureMethod · 0.95
test_vw_argsMethod · 0.95
test_numpy_inputMethod · 0.95
_load_from_svmlightMethod · 0.45

Calls

no outgoing calls

Tested by 10

test_sklearn_pipelineMethod · 0.76
test_create_featuresMethod · 0.76
test_predictionsMethod · 0.76
test_dict_featureMethod · 0.76
test_list_featureMethod · 0.76
test_vw_argsMethod · 0.76
test_numpy_inputMethod · 0.76