Skip to content

worker deployment update-version-compute-config#1001

Open
jaypipes wants to merge 2 commits into
temporalio:mainfrom
jaypipes:jaypipes/replace-version-compute-config
Open

worker deployment update-version-compute-config#1001
jaypipes wants to merge 2 commits into
temporalio:mainfrom
jaypipes:jaypipes/replace-version-compute-config

Conversation

@jaypipes
Copy link
Copy Markdown
Contributor

@jaypipes jaypipes commented Apr 27, 2026

Adds implementation of the UpdateWorkerDeploymentVersionComputeConfig gRPC API call with a temporal worker deployment update-version-compute-config CLI command. There is a --remove CLI flag that allows the user to explicitly delete the compute config from a Worker Deployment Version.

@jaypipes jaypipes requested a review from a team as a code owner April 27, 2026 18:27
@jaypipes jaypipes force-pushed the jaypipes/replace-version-compute-config branch from afab676 to f6fdb9b Compare April 27, 2026 18:27
@jaypipes jaypipes changed the title worker deployment replace-version-compute-config` worker deployment replace-version-compute-config Apr 27, 2026
@jaypipes jaypipes requested a review from chaptersix April 27, 2026 20:28
Comment thread internal/temporalcli/commands.yaml
@jaypipes jaypipes force-pushed the jaypipes/replace-version-compute-config branch 2 times, most recently from f6601f4 to bdd4c48 Compare April 28, 2026 16:40
@jaypipes
Copy link
Copy Markdown
Contributor Author

@chaptersix I don't believe the test failure has anything to do with this particular PR.

@chaptersix
Copy link
Copy Markdown
Contributor

A couple things worth reconsidering here:

Command naming -- The CLI uses update-version-metadata for modifying properties on an existing version, and the gRPC API is UpdateWorkerDeploymentVersionComputeConfig. Using "replace" instead of "update" breaks the pattern -- we want CLI commands to be predictable so users can remember and guess at what a command or flag might be. Something like update-version-compute-config would be more consistent.

Implicit delete behavior -- Currently if --aws-lambda-function-arn is omitted, the command silently removes the compute config. That's surprising given no other command treats the absence of a flag as a destructive action. Something like a --remove flag (similar to how update-version-metadata uses --remove-entries) would make the behavior predictable and consistent with the rest of the CLI.

@jaypipes
Copy link
Copy Markdown
Contributor Author

A couple things worth reconsidering here:

Command naming -- The CLI uses update-version-metadata for modifying properties on an existing version, and the gRPC API is UpdateWorkerDeploymentVersionComputeConfig. Using "replace" instead of "update" breaks the pattern -- we want CLI commands to be predictable so users can remember and guess at what a command or flag might be. Something like update-version-compute-config would be more consistent.

Implicit delete behavior -- Currently if --aws-lambda-function-arn is omitted, the command silently removes the compute config. That's surprising given no other command treats the absence of a flag as a destructive action. Something like a --remove flag (similar to how update-version-metadata uses --remove-entries) would make the behavior predictable and consistent with the rest of the CLI.

@chaptersix all great points. I will rework the patch!

@jaypipes jaypipes marked this pull request as draft April 28, 2026 18:46
jaypipes added 2 commits May 13, 2026 11:16
Adds implementation of the `UpdateWorkerDeploymentVersionComputeConfig`
gRPC API call with a `temporal worker deployment
replace-version-compute-config` CLI command. I used `replace` instead of
`update` to be more explicit about the replacement semantics used by the
command.

Signed-off-by: Jay Pipes <jay.pipes@temporal.io>
Changes the `temporal worker deployment replace-version-compute-config`
CLI command to `temporal worker deployment
update-version-compute-config` to match other CLI commands. Adds an
explicit `--remove` CLI flag to remove the compute config on the
version.

Signed-off-by: Jay Pipes <jay.pipes@temporal.io>
@jaypipes jaypipes force-pushed the jaypipes/replace-version-compute-config branch from bdd4c48 to 6bedccf Compare May 13, 2026 17:03
@jaypipes jaypipes marked this pull request as ready for review May 13, 2026 17:03
@jaypipes
Copy link
Copy Markdown
Contributor Author

@chaptersix sorry for the delay and thank you for your patience. I've updated the code per your review recommendations.

@jaypipes jaypipes changed the title worker deployment replace-version-compute-config worker deployment update-version-compute-config May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants