Skip to content

Commit ac7023a

Browse files
rkannan82claude
andauthored
Add stubs for new activity execution APIs (#10158)
## What Bump `go.temporal.io/api` and add stubs for newly added `PauseActivityExecution`, `UnpauseActivityExecution`, `ResetActivityExecution`, and `UpdateActivityExecutionOptions` APIs. ## Why temporalio/api#743 added these RPCs to `WorkflowServiceClient`/`WorkflowServiceServer`. Without stubs, any branch bumping api-go fails to build. ## How did you test it? `go build ./...` passes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 507d637 commit ac7023a

12 files changed

Lines changed: 303 additions & 3 deletions

File tree

client/frontend/client_gen.go

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/frontend/metric_client_gen.go

Lines changed: 56 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/frontend/retryable_client_gen.go

Lines changed: 60 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/api/metadata.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ var (
153153
"PauseActivity": {Scope: ScopeNamespace, Access: AccessWrite, Polling: PollingNone},
154154
"UnpauseActivity": {Scope: ScopeNamespace, Access: AccessWrite, Polling: PollingNone},
155155
"ResetActivity": {Scope: ScopeNamespace, Access: AccessWrite, Polling: PollingNone},
156+
"UpdateActivityExecutionOptions": {Scope: ScopeNamespace, Access: AccessWrite, Polling: PollingNone},
157+
"PauseActivityExecution": {Scope: ScopeNamespace, Access: AccessWrite, Polling: PollingNone},
158+
"UnpauseActivityExecution": {Scope: ScopeNamespace, Access: AccessWrite, Polling: PollingNone},
159+
"ResetActivityExecution": {Scope: ScopeNamespace, Access: AccessWrite, Polling: PollingNone},
156160
"UpdateWorkflowExecutionOptions": {Scope: ScopeNamespace, Access: AccessWrite, Polling: PollingNone},
157161
"DescribeDeployment": {Scope: ScopeNamespace, Access: AccessReadOnly, Polling: PollingNone}, // [cleanup-wv-pre-release]
158162
"ListDeployments": {Scope: ScopeNamespace, Access: AccessReadOnly, Polling: PollingNone}, // [cleanup-wv-pre-release]

common/rpc/interceptor/logtags/workflow_service_server_gen.go

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/rpc/interceptor/redirection.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ var (
110110
"PauseActivity": func() any { return &workflowservice.PauseActivityResponse{} },
111111
"UnpauseActivity": func() any { return &workflowservice.UnpauseActivityResponse{} },
112112
"ResetActivity": func() any { return &workflowservice.ResetActivityResponse{} },
113+
"UpdateActivityExecutionOptions": func() any { return &workflowservice.UpdateActivityExecutionOptionsResponse{} },
114+
"PauseActivityExecution": func() any { return &workflowservice.PauseActivityExecutionResponse{} },
115+
"UnpauseActivityExecution": func() any { return &workflowservice.UnpauseActivityExecutionResponse{} },
116+
"ResetActivityExecution": func() any { return &workflowservice.ResetActivityExecutionResponse{} },
113117
"UpdateWorkflowExecutionOptions": func() any { return &workflowservice.UpdateWorkflowExecutionOptionsResponse{} },
114118

115119
"DescribeDeployment": func() any { return &workflowservice.DescribeDeploymentResponse{} }, // [cleanup-wv-pre-release]

common/rpc/interceptor/redirection_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ func (s *redirectionInterceptorSuite) TestGlobalAPI() {
169169
"PauseActivity": {},
170170
"UnpauseActivity": {},
171171
"ResetActivity": {},
172+
"UpdateActivityExecutionOptions": {},
173+
"PauseActivityExecution": {},
174+
"UnpauseActivityExecution": {},
175+
"ResetActivityExecution": {},
172176
"UpdateWorkflowExecutionOptions": {},
173177
"DescribeDeployment": {},
174178
"ListDeployments": {},

0 commit comments

Comments
 (0)