Skip to content

Reject update-options --start-delay for workflow Activities - #1150

Merged
dandavison merged 2 commits into
mainfrom
dan/wfa-no-start-delay
Aug 5, 2026
Merged

Reject update-options --start-delay for workflow Activities#1150
dandavison merged 2 commits into
mainfrom
dan/wfa-no-start-delay

Conversation

@dandavison

Copy link
Copy Markdown
Contributor

What changed?

Reject update-options --start-delay for workflow Activities

Tests

  • Added functional test(s) (SharedServerSuite)

Only a Standalone Activity has a start delay, and update-options documents
--start-delay as unsupported for workflow Activities. The server nonetheless
accepts the field for one: the request exits 0 and the response echoes the
requested delay, while the stored options leave start_delay unset and the
Activity's retry schedule is unchanged. Reject the flag when combined with
--workflow-id or --query instead of reporting a change that never happened.

Run the tests from the repo root:
  go test ./internal/temporalcli -run 'TestSharedServerSuite/TestActivity'
@dandavison
dandavison requested a review from a team as a code owner August 3, 2026 16:04
@dandavison
dandavison requested a review from spkane31 August 3, 2026 16:42
}

func (s *SharedServerSuite) TestActivityUpdateOptions_StartDelayRejectedForWorkflowActivity() {
run := s.waitActivityStarted()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: these are client side validations so you don't even need to start an activity.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, good point, done.

@dandavison
dandavison enabled auto-merge August 4, 2026 23:24
@dandavison
dandavison added this pull request to the merge queue Aug 4, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 4, 2026
@dandavison
dandavison added this pull request to the merge queue Aug 5, 2026
Merged via the queue into main with commit 0bf01a5 Aug 5, 2026
11 checks passed
@dandavison
dandavison deleted the dan/wfa-no-start-delay branch August 5, 2026 13:55
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