Skip to content

Commit e10f6af

Browse files
authored
Workflow rerun: make newInstanceID optonal (#23)
Signed-off-by: joshvanl <[email protected]>
1 parent 79b3916 commit e10f6af

File tree

3 files changed

+174
-170
lines changed

3 files changed

+174
-170
lines changed

api/orchestration.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"time"
77

88
"github.com/dapr/durabletask-go/api/protos"
9+
"github.com/dapr/kit/ptr"
910
"google.golang.org/protobuf/types/known/timestamppb"
1011
"google.golang.org/protobuf/types/known/wrapperspb"
1112
)
@@ -214,7 +215,7 @@ func WithRerunInput(input any) RerunOptions {
214215

215216
func WithRerunNewInstanceID(id InstanceID) RerunOptions {
216217
return func(req *protos.RerunWorkflowFromEventRequest) error {
217-
req.NewInstanceID = id.String()
218+
req.NewInstanceID = ptr.Of(id.String())
218219
return nil
219220
}
220221
}

0 commit comments

Comments
 (0)