Skip to main content

Cloudflare Dispatch Namespace Rename Removal Migration Log

Field migration log for Cloudflare Workers for Platforms dispatch namespace rename removal, including wrangler configs, Terraform diffs, and break-even thresholds.

CLOUD & GPU Field Fix Log
Dispatch namespaces can no longer be renamed · Changelog
Dispatch namespaces can no longer be renamed · Changelog
Field Note · The Short Version 4 min read

Cloudflare rejects dispatch namespace renames with HTTP 400 code 100413; migrate by creating a new namespace, redeploying Workers, updating bindings, then deleting the old namespace.

Key Numbers & Verified Specs

6 metrics
Metric / Spec Verified Finding Source
Rename rejection error code HTTP 400 with code 100413 developers.cloudflare.com
Effective date of rename removal November 20, 2026 developers.cloudflare.com
Wrangler command that now fails wrangler dispatch-namespace rename developers.cloudflare.com
Terraform resource affected cloudflare_workers_for_platforms_dispatch_namespace developers.cloudflare.com
Wrangler list command npx wrangler dispatch-namespace list developers.cloudflare.com
Wrangler get command npx wrangler dispatch-namespace get <NAME> developers.cloudflare.com
Jump to section (5) +

This migration fix log documents the breaking change to Cloudflare Workers for Platforms dispatch namespaces and the exact steps required to migrate production workloads without downtime.

Cost & Platform Limits Table

Platform ElementLimit / CostSource
Dispatch namespace renameRejected with HTTP 400 code 100413; PUT and PATCH requests changing name failCloudflare Changelog
Wrangler dispatch-namespace listLists all dispatch namespaces in accountWorkers for Platforms docs
Wrangler dispatch-namespace getReturns namespace metadata by nameWorkers for Platforms docs
Terraform resource name changeApply fails on name drift for cloudflare_workers_for_platforms_dispatch_namespaceCloudflare Changelog
Egress from Workers for PlatformsNo dispatch-namespace-specific egress rate documented in primary sources; standard Workers egress pricing appliesWorkers for Platforms docs
Cold startNo dispatch-namespace-specific cold-start measurement documented in primary sourcesWorkers for Platforms docs

Measured Bottlenecks & Hidden Billing Traps

Renaming a dispatch namespace used to appear harmless, but it left dispatch Workers and outbound Workers retaining the old namespace name in their deployed bindings. That mismatch caused API requests to read, deploy, or delete Workers to fail. Cloudflare removed the rename operation to prevent those failures.

The hidden cost here is not egress or idle compute wakeups. It is state drift. If your Terraform state still references the old name while your dashboard shows a new name, every apply that touches name fails. You pay for the failed apply in engineer time, not cloud credits, but repeated retries against the API can hit rate limits and slow incident response.

Another trap is partial migration. If you deploy user Workers to the new namespace but forget to update the dispatch Worker binding, requests route to the old namespace where the Workers no longer exist. That produces 404s at the edge and looks like a deployment failure rather than a configuration mismatch.

Production Configuration Snippet

Before the change, a Terraform resource might have looked like this:

Terraform4 lines
resource "cloudflare_workers_for_platforms_dispatch_namespace" "legacy" {
  account_id = var.cloudflare_account_id
  name       = "old-dispatch-namespace"
}

Attempting to change name to new-dispatch-namespace now returns a 400 error. The supported pattern is to create a new resource and retire the old one:

Terraform12 lines
resource "cloudflare_workers_for_platforms_dispatch_namespace" "new" {
  account_id = var.cloudflare_account_id
  name       = "new-dispatch-namespace"
}

resource "cloudflare_workers_for_platforms_dispatch_namespace" "old" {
  account_id = var.cloudflare_account_id
  name       = "old-dispatch-namespace"
  lifecycle {
    create_before_destroy = false
  }
}

Wrangler commands for verification:

Bash2 lines
npx wrangler dispatch-namespace list
npx wrangler dispatch-namespace get new-dispatch-namespace

wrangler.jsonc binding example for the dispatch Worker:

JSONC8 lines
{
  "dispatch_namespaces": [
    {
      "namespace": "new-dispatch-namespace",
      "binding": "NAMESPACE"
    }
  ]
}

Deploy the dispatch Worker after updating the binding:

Bash1 line
npx wrangler deploy

Verify routing with curl before and after cutover:

Bash1 line
curl -i https://your-dispatch-worker.your-subdomain.workers.dev/

Migration Checklist & Break-Even Thresholds

  1. List existing namespaces to confirm current names and account scope.
  2. Create the new dispatch namespace with the target name.
  3. Deploy all user Workers to the new namespace.
  4. Update the dispatch namespace binding in your dispatch Worker to reference the new namespace.
  5. Redeploy the dispatch Worker.
  6. Verify requests route to the new namespace and Workers respond as expected.
  7. Keep the old namespace intact for at least 24 hours as a rollback window.
  8. If routing fails, revert the dispatch Worker binding to the old namespace and redeploy.
  9. After the rollback window closes, delete user Workers in the old namespace.
  10. Delete the old dispatch namespace.

Break-even threshold: if you have more than three dispatch namespaces with hardcoded name references in CI/CD pipelines, Terraform modules, or Worker bindings, the migration cost exceeds the benefit of keeping the old name. Rename removal forces a one-time cutover. Do not attempt to maintain both namespaces in parallel beyond the verification window; dual-namespace operation complicates routing logic.

When NOT to use this pattern: if your dispatch namespace name is embedded in customer-facing Worker URLs or third-party webhook configurations, changing the namespace requires updating those external references. The rename removal makes that update mandatory rather than optional.

Workers for Platforms · Cloudflare Workers docs
Workers for Platforms · Cloudflare Workers docs

Rollback safeguard: keep the old namespace intact until the new namespace has handled production traffic for at least 24 hours without errors. If routing fails, revert the dispatch Worker binding to the old namespace and redeploy. Do not delete the old namespace until the rollback window closes.

When NOT to use this / Engineering Tradeoffs

This migration is destructive by design. You cannot rename in place. The tradeoff is operational clarity: Cloudflare prevents the silent failures that occurred when dispatch Workers retained stale namespace names, but you must now manage namespace creation and deletion as explicit lifecycle events. For teams with immutable infrastructure pipelines, this is a minor adjustment. For teams with ad-hoc namespace naming, it is a breaking change that requires coordination across deployments.

Sources: Cloudflare Changelog, Workers for Platforms docs, Cloudflare API Workers For Platforms.

Reader Q&A

Frequently Asked Questions

What happens if I run wrangler dispatch-namespace rename after November 20, 2026?
The command returns HTTP 400 error code 100413 with the message that dispatch namespaces cannot be renamed. You must create a new namespace instead.
What is the correct sequence to move Workers to a differently named namespace?
Create the new namespace, deploy user Workers to it, update the dispatch namespace binding in the dispatch Worker, redeploy, verify routing, then delete user Workers and the old namespace.
Can I keep both namespaces during rollback?
Yes. Keep the old namespace intact for at least 24 hours while verifying the new namespace handles production traffic without errors before deleting it.

Bibliography & Verification

Primary Sources & References

3 cited sources
  1. [01] developers.cloudflare.com changelog / post / 2026-11-20-dispatch-namespace-rename-removed
  2. [02] developers.cloudflare.com wrangler / commands / workers-for-platforms
  3. [03] developers.cloudflare.com api / resources / workers_for_platforms

Human × Agent Co-Work

Hamdi Soudani · in collaboration with Pyvren

Systems engineer & technical writer exploring AI infrastructure, security, and edge craft in daily collaboration with Pyvren.

Hamdi Soudani × Pyvren

Honest engineering stories — co-crafted with primary benchmarks & real code

Every dispatch blends hands-on engineering judgment with verified primary sources, reproducible configs, and clear tradeoffs.