Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions internal/internal_nexus_task_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,17 +246,12 @@ func (h *nexusTaskHandler) handleStartOperation(
}
}
token := t.OperationToken
//lint:ignore SA1019 this field might be set by users of older SDKs.
if t.OperationID != "" {
token = t.OperationID //lint:ignore SA1019 this field might be set by users of older SDKs.
}
return &nexuspb.Response{
Variant: &nexuspb.Response_StartOperation{
StartOperation: &nexuspb.StartOperationResponse{
Variant: &nexuspb.StartOperationResponse_AsyncSuccess{
AsyncSuccess: &nexuspb.StartOperationResponse_Async{
OperationToken: token,
OperationId: token,
Links: links,
},
},
Expand Down
5 changes: 1 addition & 4 deletions temporalnexus/operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ func (o *workflowRunOperation[I, O]) Start(
nexus.AddHandlerLinks(ctx, handle.link())
return &nexus.HandlerStartOperationResultAsync{
OperationToken: handle.token(),
OperationID: handle.token(),
}, nil
}

Expand All @@ -204,7 +203,6 @@ func (o *workflowRunOperation[I, O]) Start(
nexus.AddHandlerLinks(ctx, handle.link())
return &nexus.HandlerStartOperationResultAsync{
OperationToken: handle.token(),
OperationID: handle.token(),
}, nil
}

Expand Down Expand Up @@ -323,8 +321,7 @@ func ExecuteUntypedWorkflow[R any](
nexusOptions.CallbackHeader = make(nexus.Header)
}

//lint:ignore SA1019 this field is expected to be populated by servers older than 1.27.0.
nexusOptions.CallbackHeader.Set(nexus.HeaderOperationID, encodedToken)
nexusOptions.CallbackHeader.Set("nexus-operation-id", encodedToken)
nexusOptions.CallbackHeader.Set(nexus.HeaderOperationToken, encodedToken)
internal.SetCallbacksOnStartWorkflowOptions(&startWorkflowOptions, []*common.Callback{
{
Expand Down