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

Function start_zk_client

python/seldon/shell/shell_main.py:329–337  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

327 gdata["conf_data"] = json.load(data_file)
328
329def start_zk_client(opts):
330 zk_hosts = opts.zk_hosts
331 if not opts.quiet:
332 sys.stdout.write("connecting to "+zk_hosts)
333 gdata["zk_client"] = KazooClient(hosts=zk_hosts)
334 gdata["zk_client"].start()
335 res = "SUCCEEDED" if gdata["zk_client"].connected else "FAILED"
336 if not opts.quiet:
337 print " [{res}]".format(**locals())
338
339def stop_zk_client():
340 if gdata["zk_client"].connected:

Callers 1

mainFunction · 0.70

Calls 1

startMethod · 0.80

Tested by

no test coverage detected