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

Function main

st2actions/st2actions/cmd/workflow_engine.py:86–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84
85
86def main():
87 try:
88 setup()
89 return run_server()
90 except SystemExit as exit_code:
91 sys.exit(exit_code)
92 except Exception:
93 traceback.print_exc()
94 LOG.exception("(PID=%s) Workflow engine quit due to exception.", os.getpid())
95 return 1
96 finally:
97 teardown()

Callers

nothing calls this directly

Calls 3

run_serverFunction · 0.85
setupFunction · 0.70
teardownFunction · 0.70

Tested by

no test coverage detected