diff --git a/scripts/blender-run b/scripts/blender-run index 6c22cf9..64e90d4 100755 --- a/scripts/blender-run +++ b/scripts/blender-run @@ -30,6 +30,9 @@ # per distinct DIR (small files, on /tank). Without --job, the only paths Blender sees are under # /work (= fv-ml1:/tank/blender). # +# The container's hostname is fixed as fv-ml1-blender, so socket.gethostname() is stable across +# runs (callers record it as provenance; draupnir, 2026-09-28). Without it, it is the container id. +# # Budget: GPU 3 (96 GB, borrowed from the vLLM reserve: this ends if a full-size seat moves in). # The container is capped at 64 GB RAM / 48 CPUs so a runaway render cannot starve the inference # seats on the same host. @@ -49,7 +52,7 @@ while [ $# -gt 0 ]; do --mount type=bind,src=/opt/docker/conf/blender/scripts/startup/fleet_extensions.py,dst=/fleet/fleet_extensions.py,readonly" shift ;; --) shift; break ;; - -h|--help) sed -n 2,35p "$0"; exit 0 ;; + -h|--help) sed -n 2,38p "$0"; exit 0 ;; *) echo "blender-run: unknown option $1 (blender args go after --)" >&2; exit 2 ;; esac done @@ -76,7 +79,7 @@ PRE="" [ -n "$EXT" ] && PRE="--python /fleet/fleet_extensions.py" set +e ssh -n -o BatchMode=yes "$HOST" "IMG=\$(grep '^IMAGE=' $ENV_FILE | cut -d= -f2) && \ - exec docker run --rm --name blender-run-\$\$ --runtime nvidia \ + exec docker run --rm --name blender-run-\$\$ --hostname fv-ml1-blender --runtime nvidia \ -e NVIDIA_VISIBLE_DEVICES=3 -e NVIDIA_DRIVER_CAPABILITIES=all \ --user 1002:1003 -e HOME=/tmp -e USER=infra-ops -e LOGNAME=infra-ops --memory 64g --cpus 48 \ -v /tank/blender:/work $EXT -w $WORKDIR --entrypoint /blender/blender \"\$IMG\" \