temporalio / temporalio/temporal

Worker deployment set-current-version cannot switch to unversioned in default namespace: "BuildID cannot be empty" (Server 1.30.1 / CLI 1.6.1)

Open
#9,581 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

potential-bug
Dominant language
Go
Stars
23.2k
Forks
1.9k
Avg merge
2d 8h
Merged PRs (30d)
228

Description

Environment

  • Date: 2026-03-19
  • Temporal Server: 1.30.1
  • Temporal CLI (admin-tools): 1.6.1
  • Temporal UI: 2.45.3
  • Namespace: default
  • Deployment: falcon-risk-worker
  • Build ID: v20260318112554

Problem

We accidentally created worker deployment metadata in default namespace and tried to clean it up.
Cleanup is blocked because we cannot switch current version to unversioned.

Reproduction

temporal worker deployment set-current-version \
  --deployment-name falcon-risk-worker \
  --unversioned \
  --allow-no-pollers \
  -n default \
  --address 127.0.0.1:7233 \
  -y

Also fails with:

temporal worker deployment set-current-version \
  --deployment-name falcon-risk-worker \
  --build-id "" \
  --allow-no-pollers \
  -n default \
  --address 127.0.0.1:7233 \
  -y


##Actual result
error setting the current worker deployment version: BuildID cannot be empty

##Expected result
--unversioned or --build-id "" should switch current version to unversioned, so delete-version and delete deployment can proceed.

##Impact
Official cleanup flow is blocked for mistaken deployment metadata in default.

##Workaround used
We force-cleaned by terminating/deleting the internal worker deployment entity workflows (workflow-id targeted), then verified:
temporal worker deployment list -n default returns no records.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the temporal worker deployment set-current-version commands with --unversioned and --build-id "" in the default namespace. Trace the CLI and server handling of the unversioned current version, then verify that the command succeeds and allows the documented delete-version and delete-deployment cleanup flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.