MCPcopy
hub / github.com/benoitc/gunicorn / handle_quit

Method handle_quit

gunicorn/workers/gthread.py:256–259  ·  view source on GitHub ↗

Handle SIGQUIT - immediate shutdown.

(self, sig, frame)

Source from the content-addressed store, hash-verified

254 self.method_queue.defer(lambda: None)
255
256 def handle_quit(self, sig, frame):
257 """Handle SIGQUIT - immediate shutdown."""
258 self.tpool.shutdown(wait=False)
259 super().handle_quit(sig, frame)
260
261 def set_accept_enabled(self, enabled):
262 """Enable or disable accepting new connections."""

Callers

nothing calls this directly

Calls 1

shutdownMethod · 0.45

Tested by

no test coverage detected