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

Method _shutdown

gunicorn/dirty/arbiter.py:338–341  ·  view source on GitHub ↗

Initiate async shutdown.

(self)

Source from the content-addressed store, hash-verified

336 self._loop.call_soon_threadsafe(self._shutdown)
337
338 def _shutdown(self):
339 """Initiate async shutdown."""
340 if self._server:
341 self._server.close()
342
343 async def _run_async(self):
344 """Main async loop - start server, manage workers."""

Callers 3

_worker_monitorMethod · 0.95

Calls 1

closeMethod · 0.45

Tested by 2