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

Function main

st2auth/st2auth/cmd/api.py:108–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106
107
108def main():
109 try:
110 _setup()
111 return _run_server()
112 except SystemExit as exit_code:
113 deregister_service(AUTH)
114 sys.exit(exit_code)
115 except Exception:
116 LOG.exception("(PID=%s) ST2 Auth API quit due to exception.", os.getpid())
117 return 1
118 finally:
119 _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