INNER CODE UNIT · Python
is_network_volume_debug_enabled
runpod-workers/worker-comfyui · src/network_volume.py:25
def is_network_volume_debug_enabled():
"""Check if network volume debug mode is enabled via environment variable."""
return os.environ.get("NETWORK_VOLUME_DEBUG", "false").lower() == "true"
def run_network_volume_diagnostics():
"""
Run comprehensive network volume diagnostics and print helpful output.
Only runs when NETWORK_VOLUME_DEBUG=true environment variable is set.
"""
print("=" * 70)
print("NETWORK VOLUME DIAGNOSTICS (NETWORK_VOLUME_DEBUG=true)")
print("=" * 70)
# Check extra_model_paths.yaml
extra_model_paths_file = "/comfyui/extra_model_paths.yaml"
print("\n[1] Checking extra_model_paths.yaml configuration...")
if os.path.isfile(extra_model_paths_file):