MCPcopy Create free account
hub / github.com/StackStorm/st2 / _run_server

Function _run_server

st2api/st2api/cmd/api.py:76–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74
75
76def _run_server():
77 host = cfg.CONF.api.host
78 port = cfg.CONF.api.port
79
80 LOG.info("(PID=%s) ST2 API is serving on http://%s:%s.", os.getpid(), host, port)
81
82 max_pool_size = eventlet.wsgi.DEFAULT_MAX_SIMULTANEOUS_REQUESTS
83 worker_pool = eventlet.GreenPool(max_pool_size)
84 sock = eventlet.listen((host, port))
85
86 wsgi.server(
87 sock, app.setup_app(), custom_pool=worker_pool, log=LOG, log_output=False
88 )
89 return 0
90
91
92def _teardown():

Callers 1

mainFunction · 0.70

Calls 1

listenMethod · 0.80

Tested by

no test coverage detected