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

Function main

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

Source from the content-addressed store, hash-verified

94
95
96def main():
97 try:
98 _setup()
99 return _run_server()
100 except SystemExit as exit_code:
101 deregister_service(API)
102 sys.exit(exit_code)
103 except Exception:
104 LOG.exception("(PID=%s) ST2 API quit due to exception.", os.getpid())
105 return 1
106 finally:
107 _teardown()

Callers

nothing calls this directly

Calls 4

deregister_serviceFunction · 0.90
_setupFunction · 0.70
_run_serverFunction · 0.70
_teardownFunction · 0.70

Tested by

no test coverage detected