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

Function main

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

_setupFunction · 0.70
_run_workerFunction · 0.70
_teardownFunction · 0.70

Tested by

no test coverage detected