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

Function sigterm_handler

st2actions/st2actions/cmd/workflow_engine.py:43–45  ·  view source on GitHub ↗
(signum=None, frame=None)

Source from the content-addressed store, hash-verified

41
42def setup_sigterm_handler(engine):
43 def sigterm_handler(signum=None, frame=None):
44 # This will cause SystemExit to be throw and allow for component cleanup.
45 engine.kill()
46
47 # Register a SIGTERM signal handler which calls sys.exit which causes SystemExit to
48 # be thrown. We catch SystemExit and handle cleanup there.

Callers

nothing calls this directly

Calls 1

killMethod · 0.80

Tested by

no test coverage detected