Get the dirty socket path.
()
| 665 | |
| 666 | |
| 667 | def 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 | |
| 681 | def get_dirty_client(timeout=30.0) -> DirtyClient: |