From ae7750b7afe124cc5cb44a744f56d3fc77078f49 Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Tue, 10 Nov 2026 04:24:12 -0800 Subject: [PATCH] fix(sandbox-control): re-bind the build runner Worker (step 2 of 2 after the delete-class migration) (#240) --- cloud/apps/sandbox-control/wrangler.dev.jsonc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cloud/apps/sandbox-control/wrangler.dev.jsonc b/cloud/apps/sandbox-control/wrangler.dev.jsonc index 809abe67d50..96e284ce2e3 100644 --- a/cloud/apps/sandbox-control/wrangler.dev.jsonc +++ b/cloud/apps/sandbox-control/wrangler.dev.jsonc @@ -28,9 +28,11 @@ // runner is its own Worker (wrangler.build-runner.dev.jsonc, deployed first): a Worker implementing a // Durable Object gets no preview URLs. v2 deletes the class this Worker hosted until then; its only // state was each build's alarm, and the cron below re-arms every unfinished build within a minute. - // Step 1 of 2: Cloudflare refuses the delete-class migration while any binding names the class (error - // 10061), even one pointing at another script. This deploy applies v2 with no binding (builds advance on - // the every-minute cron meanwhile); step 2 re-adds the binding to orca-sandbox-build-runner-dev. + // v2 below was applied in a deploy with no binding (Cloudflare error 10061 refuses a delete-class migration + // while any binding names the class, even one with script_name); the binding now points at the runner Worker. + "durable_objects": { + "bindings": [{ "name": "ENV_BUILD_RUNNER", "class_name": "EnvironmentBuildRunner", "script_name": "orca-sandbox-build-runner-dev" }] + }, "migrations": [ { "tag": "env-build-runner-v1", "new_sqlite_classes": ["EnvironmentBuildRunner"] }, { "tag": "env-build-runner-v2", "deleted_classes": ["EnvironmentBuildRunner"] }