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

Function get_stash_socket_path

gunicorn/dirty/stash.py:424–436  ·  view source on GitHub ↗

Get the stash socket path.

()

Source from the content-addressed store, hash-verified

422
423
424def get_stash_socket_path():
425 """Get the stash socket path."""
426 import os
427 if _stash_socket_path is None:
428 # Check environment variable
429 path = os.environ.get('GUNICORN_DIRTY_SOCKET')
430 if path:
431 return path
432 raise StashError(
433 "Stash socket path not configured. "
434 "Make sure dirty_workers > 0 and dirty_apps are configured."
435 )
436 return _stash_socket_path
437
438
439def _get_client():

Callers 1

_get_clientFunction · 0.85

Calls 2

StashErrorClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected