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

Function get_dirty_socket_path

gunicorn/dirty/client.py:667–678  ·  view source on GitHub ↗

Get the dirty socket path.

()

Source from the content-addressed store, hash-verified

665
666
667def get_dirty_socket_path():
668 """Get the dirty socket path."""
669 if _dirty_socket_path is None:
670 # Check environment variable
671 path = os.environ.get('GUNICORN_DIRTY_SOCKET')
672 if path:
673 return path
674 raise DirtyError(
675 "Dirty socket path not configured. "
676 "Make sure dirty_workers > 0 and dirty_apps are configured."
677 )
678 return _dirty_socket_path
679
680
681def get_dirty_client(timeout=30.0) -> DirtyClient:

Calls 2

DirtyErrorClass · 0.85
getMethod · 0.45