Skip to content

Commit 35acc0c

Browse files
committed
Move pause info into WorkflowExtendedInfo.PauseInfo in describe results
1 parent 98ef3ac commit 35acc0c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ require (
5959
go.opentelemetry.io/otel/sdk v1.34.0
6060
go.opentelemetry.io/otel/sdk/metric v1.34.0
6161
go.opentelemetry.io/otel/trace v1.34.0
62-
go.temporal.io/api v1.58.1-0.20251118184710-8b9eaeb2e837
62+
go.temporal.io/api v1.58.1-0.20251120183209-4485ca21da0e
6363
go.temporal.io/sdk v1.35.0
6464
go.uber.org/fx v1.24.0
6565
go.uber.org/mock v0.6.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,8 @@ go.opentelemetry.io/otel/trace v1.34.0 h1:+ouXS2V8Rd4hp4580a8q23bg0azF2nI8cqLYnC
393393
go.opentelemetry.io/otel/trace v1.34.0/go.mod h1:Svm7lSjQD7kG7KJ/MUHPVXSDGz2OX4h0M2jHBhmSfRE=
394394
go.opentelemetry.io/proto/otlp v1.5.0 h1:xJvq7gMzB31/d406fB8U5CBdyQGw4P399D1aQWU/3i4=
395395
go.opentelemetry.io/proto/otlp v1.5.0/go.mod h1:keN8WnHxOy8PG0rQZjJJ5A2ebUoafqWp0eVQ4yIXvJ4=
396-
go.temporal.io/api v1.58.1-0.20251118184710-8b9eaeb2e837 h1:baHLIESoCQTasQpe+8GsEjRboC8KZnHhaxPlCpMx1W0=
397-
go.temporal.io/api v1.58.1-0.20251118184710-8b9eaeb2e837/go.mod h1:iaxoP/9OXMJcQkETTECfwYq4cw/bj4nwov8b3ZLVnXM=
396+
go.temporal.io/api v1.58.1-0.20251120183209-4485ca21da0e h1:Nuz7hXaulU/jyeeqw/igwxgQIxuhcrE5xSb8f0qooHY=
397+
go.temporal.io/api v1.58.1-0.20251120183209-4485ca21da0e/go.mod h1:iaxoP/9OXMJcQkETTECfwYq4cw/bj4nwov8b3ZLVnXM=
398398
go.temporal.io/sdk v1.35.0 h1:lRNAQ5As9rLgYa7HBvnmKyzxLcdElTuoFJ0FXM/AsLQ=
399399
go.temporal.io/sdk v1.35.0/go.mod h1:1q5MuLc2MEJ4lneZTHJzpVebW2oZnyxoIOWX3oFVebw=
400400
go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=

service/history/api/describeworkflow/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func Invoke(
145145

146146
// copy pause info to the response if it exists
147147
if executionInfo.PauseInfo != nil {
148-
result.WorkflowExecutionInfo.PauseInfo = &workflowpb.WorkflowExecutionPauseInfo{
148+
result.WorkflowExtendedInfo.PauseInfo = &workflowpb.WorkflowExecutionPauseInfo{
149149
PausedTime: executionInfo.PauseInfo.PauseTime,
150150
Identity: executionInfo.PauseInfo.Identity,
151151
Reason: executionInfo.PauseInfo.Reason,

tests/pause_workflow_execution_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (s *PauseWorkflowExecutionSuite) TestPauseWorkflowExecution() {
9292
info := desc.GetWorkflowExecutionInfo()
9393
require.NotNil(t, info)
9494
require.Equal(t, enumspb.WORKFLOW_EXECUTION_STATUS_PAUSED, info.GetStatus())
95-
if pauseInfo := info.GetPauseInfo(); pauseInfo != nil {
95+
if pauseInfo := desc.GetWorkflowExtendedInfo().GetPauseInfo(); pauseInfo != nil {
9696
require.Equal(t, s.pauseIdentity, pauseInfo.GetIdentity())
9797
require.Equal(t, s.pauseReason, pauseInfo.GetReason())
9898
}

0 commit comments

Comments
 (0)