Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
fix(rig): stop a second instance from 404ing a poll for a job that is running
nirholas9110d50dc8f8
diff --git a/workers/rig/README.md b/workers/rig/README.mdindex f127b482c..91a945e9e 100644--- a/workers/rig/README.md+++ b/workers/rig/README.md@@ -68,8 +68,14 @@ gcloud builds submit --config workers/rig/cloudbuild.yaml \--substitutions=SHORT_SHA=manual$(date +%s) .```-Service: `model-rig`, us-central1, 1x L4 (`--no-gpu-zonal-redundancy`),-min=max instances per the L4 quota plan in `docs/ops/gcp-credits-plan.md`.+Service: `model-rig`, us-central1, 1x L4 (`--no-gpu-zonal-redundancy`), one+warm instance against the per-region L4 quota in `docs/ops/gcp-credits-plan.md`.++`_MIN_INSTANCES` and `_MAX_INSTANCES` must stay equal. Task state is in this+service's memory, so a second instance lets Cloud Run route `GET /tasks/:id` to+an instance that does not own the task and 404 a job running fine on the other.+The config said `max = 2` until 2026-08-11; the live service picks the fix up on+its next deploy.## Cutover (already applied)@@ -142,7 +148,8 @@ the startup probe.## Failure modes-A task ends in exactly one of three states, never in limbo:+A task always reaches `done` or `failed`, never limbo. What a `failed` task+reports, and what to do about it:| Reported `error` | Cause | Fix ||---|---|---|diff --git a/workers/rig/cloudbuild.yaml b/workers/rig/cloudbuild.yamlindex 6f1f5a2b2..2663b3daa 100644--- a/workers/rig/cloudbuild.yaml+++ b/workers/rig/cloudbuild.yaml@@ -11,8 +11,13 @@ substitutions:_REPO: model-rig_GCS_BUCKET: three-ws-avatar-reconstructions_WEIGHTS_BUCKET: three-ws-model-weights+ # Task state lives in this service's memory, so min MUST equal max: with a+ # second instance, Cloud Run can route GET /tasks/:id to the instance that+ # does not own the task and 404 a job that is running fine on the other one.+ # MAX_CONCURRENT=1 already serializes rigging, so the second instance bought+ # no throughput anyway. main.py and the README both document this invariant._MIN_INSTANCES: "1"- _MAX_INSTANCES: "2"+ _MAX_INSTANCES: "1"steps:- id: build