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

Function start_zk_client

python/seldon/cli/cli_main.py:318–326  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

316 gdata["conf_data"] = json.load(data_file)
317
318def start_zk_client(opts):
319 zk_hosts = opts.zk_hosts
320 if not opts.quiet:
321 sys.stdout.write("connecting to "+zk_hosts)
322 gdata["zk_client"] = KazooClient(hosts=zk_hosts)
323 gdata["zk_client"].start()
324 res = "SUCCEEDED" if gdata["zk_client"].connected else "FAILED"
325 if not opts.quiet:
326 print " [{res}]".format(**locals())
327
328def stop_zk_client():
329 if gdata["zk_client"].connected:

Callers 1

mainFunction · 0.70

Calls 1

startMethod · 0.80

Tested by

no test coverage detected