Skip to content

worker deployment replace-version-compute-config#1001

Draft
jaypipes wants to merge 1 commit intotemporalio:mainfrom
jaypipes:jaypipes/replace-version-compute-config
Draft

worker deployment replace-version-compute-config#1001
jaypipes wants to merge 1 commit intotemporalio:mainfrom
jaypipes:jaypipes/replace-version-compute-config

Conversation

@jaypipes
Copy link
Copy Markdown
Contributor

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.

@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 Outdated
@jaypipes jaypipes force-pushed the jaypipes/replace-version-compute-config branch from f6fdb9b to f6601f4 Compare April 28, 2026 16:39
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>
@jaypipes jaypipes force-pushed the jaypipes/replace-version-compute-config branch 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
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