workflow.go ×4

Frontier kind: Joint frontier

unlabeled · c_9e849cd617df

1 test · 2635 LOC · 131 files · introduces 1 test · 50 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges50 lines · 3 files
Tests
1 test

Contains — complete concept membership

All code (extent)
397 ranges2635 lines · 131 files · Browse complete extent
All tests (intent)
1 testBrowse complete intent

Neighbourhood graph

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.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

3 files ranked by introduced lines: 50 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/worker/parentclosepolicy/workflow.go 34 introduced LOC · 4 ranges

Open complete file

141 case *serviceerror.NotFound, *serviceerror.NamespaceNotFound:
142 // no-op
143 > case *serviceerror.NamespaceNotActive: workflow.go
144 > remoteExecutions[typedErr.ActiveCluster] = append(remoteExecutions[typedErr.ActiveCluster], execution)
145 default:
146 metrics.ParentClosePolicyProcessorFailures.With(processor.metricsHandler).Record(1)
174 ) error {
175 for cluster, executions := range remoteExecutions {
176 > _, remoteClient, err := clientBean.GetRemoteFrontendClient(cluster) workflow.go
177 > if err != nil {
178 return err
179 }
180 > signalValue := Request{ workflow.go
181 > ParentExecution: parentExecution,
182 > Executions: executions,
183 > }
184 > signalInput, err := converter.GetDefaultDataConverter().ToPayloads(signalValue)
185 > if err != nil {
186 return err
187 }
188
189 > signalCtx, cancel := context.WithTimeout(ctx, signalTimeout) workflow.go
190 > _, err = remoteClient.SignalWithStartWorkflowExecution(
191 > signalCtx,
192 > &workflowservice.SignalWithStartWorkflowExecutionRequest{
193 > Namespace: primitives.SystemLocalNamespace,
194 > RequestId: uuid.NewString(),
195 > WorkflowId: getWorkflowID(numWorkflows),
196 > WorkflowType: &commonpb.WorkflowType{
197 > Name: processorWFTypeName,
198 > },
199 > TaskQueue: &taskqueuepb.TaskQueue{
200 > Name: processorTaskQueueName,
201 > },
202 > Input: nil,
203 > WorkflowTaskTimeout: durationpb.New(workflowTaskTimeout),
204 > Identity: currentCluster + "-" + string(primitives.WorkerService) + "-service",
205 > WorkflowIdReusePolicy: workflowIDReusePolicy,
206 > SignalName: processorChannelName,
207 > SignalInput: signalInput,
208 > },
209 > )
210 > cancel()
211 >
212 > if err != nil {
213 return err
214 }
go.temporal.io/server/common/testing/mockapi/workflowservicemock/v1/service_grpc.pb.mock.go 13 introduced LOC · 3 ranges

Open complete file

1944
1945 // SignalWithStartWorkflowExecution mocks base method.
1946 > func (m *MockWorkflowServiceClient) SignalWithStartWorkflowExecution(ctx context.Context, in *workflowservice.SignalWithStartWorkflowExecutionRequest, opts ...grpc.CallOption) (*workflowservice.SignalWithStartWorkflowExecutionResponse, error) { service_grpc.pb.mock.go
1947 > m.ctrl.T.Helper()
1948 > varargs := []any{ctx, in}
1949 > for _, a := range opts {
1950 varargs = append(varargs, a)
1951 }
1952 > ret := m.ctrl.Call(m, "SignalWithStartWorkflowExecution", varargs...) service_grpc.pb.mock.go
1953 > ret0, _ := ret[0].(*workflowservice.SignalWithStartWorkflowExecutionResponse)
1954 > ret1, _ := ret[1].(error)
1955 > return ret0, ret1
1956 }
1957
1958 // SignalWithStartWorkflowExecution indicates an expected call of SignalWithStartWorkflowExecution.
1959 > func (mr *MockWorkflowServiceClientMockRecorder) SignalWithStartWorkflowExecution(ctx, in any, opts ...any) *gomock.Call { service_grpc.pb.mock.go
1960 > mr.mock.ctrl.T.Helper()
1961 > varargs := append([]any{ctx, in}, opts...)
1962 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SignalWithStartWorkflowExecution", reflect.TypeOf((*MockWorkflowServiceClient)(nil).SignalWithStartWorkflowExecution), varargs...)
1963 > }
1964
1965 // SignalWorkflowExecution mocks base method.
go.temporal.io/server/service/worker/parentclosepolicy/client.go 3 introduced LOC · 1 range

Open complete file

71 }
72
73 > func getWorkflowID(numWorkflows int) string { client.go
74 > return fmt.Sprintf("%v-%v", workflowIDPrefix, rand.Intn(numWorkflows))
75 > }