}
defer cancel()
return d.dispatchToWorker(ctx, task, namespaceName)
}
Frontier kind: Code frontier
unlabeled · c_07600d3caad1
3 tests · 2463 LOC · 121 files · introduces 0 tests · 50 LOC · 2 files
The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.
Introduced files, introduced tests, and structurally relevant concept specialization
In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.
Every exact file and test below is linked only from the concept that introduces it.
go.temporal.io/server/common/persistence/client/TestQuotasSuite/TestAPITypeCallOriginPriorityOverrideMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestBackgroundTypeAPIPriorityOverrideMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestCallerTypeDefaultPriorityMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestRequestPrioritiesOrderedgo.temporal.io/server/common/circuitbreaker/TestTSCBWithDynamicSettingsgo.temporal.io/server/common/dynamicconfig/TestDeepCopy_OtherReferenceTypes_Nilgo.temporal.io/server/service/matching/configs/TestQuotasSuite/TestAPIPrioritiesOrderedgo.temporal.io/server/service/matching/configs/TestQuotasSuite/TestAPIToPriorityMappingEvery collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Every collected source range enters the hierarchy at exactly one concept.
2 files ranked by introduced lines: 50 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
}
defer cancel()
return d.dispatchToWorker(ctx, task, namespaceName)
}
task *tasks.WorkerCommandsTask,
namespaceName string,
request := &workerservicepb.ExecuteCommandsRequest{
Commands: task.Commands,
}
// Encode as binary/protobuf using the standard Temporal payload format.
// Worker commands are handled directly by SDK Core (not by lang-SDK Nexus handlers),
// so we use binary/protobuf which Core can decode natively via prost. The standard
// payload.Encode() uses json/protobuf encoding, which Core does not support because
// it normally delegates Nexus payload deserialization to the lang SDK.
requestData, err := proto.Marshal(request)
if err != nil {
return fmt.Errorf("failed to encode worker commands request: %w", err)
}
Metadata: map[string][]byte{
"encoding": []byte("binary/protobuf"),
},
Data: requestData,
}
nexusRequest := &nexuspb.Request{
Header: map[string]string{},
Variant: &nexuspb.Request_StartOperation{
StartOperation: &nexuspb.StartOperationRequest{
Service: ServiceName,
Operation: OperationName,
Payload: requestPayload,
},
},
}
resp, err := d.matchingClient.DispatchNexusTask(ctx, &matchingservice.DispatchNexusTaskRequest{
NamespaceId: task.NamespaceID,
TaskQueue: &taskqueuepb.TaskQueue{
Name: task.Destination,
Kind: enumspb.TASK_QUEUE_KIND_WORKER_COMMANDS,
},
Request: nexusRequest,
})
if err != nil {
d.recordCommandMetrics(task.Commands, namespaceName, "rpc_error")
return fmt.Errorf("failed to dispatch worker commands to control queue %s: %w", task.Destination, err)
// DispatchNexusTask mocks base method.
func (m *MockMatchingServiceClient) DispatchNexusTask(ctx context.Context, in *matchingservice.DispatchNexusTaskRequest, opts ...grpc.CallOption) (*matchingservice.DispatchNexusTaskResponse, error) {
service_grpc.pb.mock.go
m.ctrl.T.Helper()
varargs := []any{ctx, in}
for _, a := range opts {
varargs = append(varargs, a)
}
ret0, _ := ret[0].(*matchingservice.DispatchNexusTaskResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}