Get the stash socket path.
()
| 422 | |
| 423 | |
| 424 | def 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 | |
| 439 | def _get_client(): |
no test coverage detected