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

Function queue_shutdown

st2stream/st2stream/cmd/api.py:90–97  ·  view source on GitHub ↗
(signal_number, stack_frame)

Source from the content-addressed store, hash-verified

88 sock = eventlet.listen((host, port))
89
90 def queue_shutdown(signal_number, stack_frame):
91 deregister_service(STREAM)
92 eventlet.spawn_n(
93 shutdown_server_kill_pending_requests,
94 sock=sock,
95 worker_pool=worker_pool,
96 wait_time=WSGI_SERVER_REQUEST_SHUTDOWN_TIME,
97 )
98
99 # We register a custom SIGINT handler which allows us to kill long running active requests.
100 # Note: Eventually we will support draining (waiting for short-running requests), but we

Callers

nothing calls this directly

Calls 1

deregister_serviceFunction · 0.90

Tested by

no test coverage detected