transfer_queue_active_task_executor.go ×5

Frontier kind: Joint frontier

unlabeled · c_00a47f7b013d

1 test · 10035 LOC · 266 files · introduces 1 test · 51 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges51 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
2154 ranges10035 lines · 266 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.

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

go.temporal.io/server/service/history/transfer_queue_active_task_executor.go 38 introduced LOC · 5 ranges

Open complete file

787 }
788
789 > err = t.signalExternalExecutionCompleted( transfer_queue_active_task_executor.go
790 > ctx,
791 > task,
792 > weContext,
793 > targetNamespaceName,
794 > targetNamespaceID,
795 > attributes.GetWorkflowExecution().GetWorkflowId(),
796 > attributes.GetWorkflowExecution().GetRunId(),
797 > attributes.Control,
798 > )
799 > if err != nil {
800 return err
801 }
802
803 > signalRequestID := signalInfo.GetRequestId() transfer_queue_active_task_executor.go
804 >
805 > // release the weContext lock since we no longer need mutable state and
806 > // the rest of logic is making RPC call, which takes time.
807 > release(retError)
808 > // remove signalRequestedID from target workflow, after Signal detail is removed from source workflow
809 > _, err = t.historyRawClient.RemoveSignalMutableState(ctx, &historyservice.RemoveSignalMutableStateRequest{
810 > NamespaceId: targetNamespaceID.String(),
811 > WorkflowExecution: attributes.GetWorkflowExecution(),
812 > RequestId: signalRequestID,
813 > })
814 > return err
815 }
816
1492 targetRunID string,
1493 control string,
1495 > return t.updateWorkflowExecution(ctx, wfContext, true,
1496 > func(mutableState historyi.MutableState) error {
1497 > if !mutableState.IsWorkflowExecutionRunning() {
1498 return consts.ErrWorkflowCompleted
1499 }
1500
1501 > _, ok := mutableState.GetSignalInfo(task.InitiatedEventID) transfer_queue_active_task_executor.go
1502 > if !ok {
1503 return workflow.ErrMissingSignalInfo
1504 }
1505
1506 > _, err := mutableState.AddExternalWorkflowExecutionSignaled( transfer_queue_active_task_executor.go
1507 > task.InitiatedEventID,
1508 > targetNamespace,
1509 > targetNamespaceID,
1510 > targetWorkflowID,
1511 > targetRunID,
1512 > control,
1513 > )
1514 > return err
1515 })
1516 }
go.temporal.io/server/api/historyservicemock/v1/service_grpc.pb.mock.go 13 introduced LOC · 3 ranges

Open complete file

985
986 // RemoveSignalMutableState mocks base method.
987 > func (m *MockHistoryServiceClient) RemoveSignalMutableState(ctx context.Context, in *historyservice.RemoveSignalMutableStateRequest, opts ...grpc.CallOption) (*historyservice.RemoveSignalMutableStateResponse, error) { service_grpc.pb.mock.go
988 > m.ctrl.T.Helper()
989 > varargs := []any{ctx, in}
990 > for _, a := range opts {
991 varargs = append(varargs, a)
992 }
993 > ret := m.ctrl.Call(m, "RemoveSignalMutableState", varargs...) service_grpc.pb.mock.go
994 > ret0, _ := ret[0].(*historyservice.RemoveSignalMutableStateResponse)
995 > ret1, _ := ret[1].(error)
996 > return ret0, ret1
997 }
998
999 // RemoveSignalMutableState indicates an expected call of RemoveSignalMutableState.
1000 > func (mr *MockHistoryServiceClientMockRecorder) RemoveSignalMutableState(ctx, in any, opts ...any) *gomock.Call { service_grpc.pb.mock.go
1001 > mr.mock.ctrl.T.Helper()
1002 > varargs := append([]any{ctx, in}, opts...)
1003 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveSignalMutableState", reflect.TypeOf((*MockHistoryServiceClient)(nil).RemoveSignalMutableState), varargs...)
1004 > }
1005
1006 // RemoveTask mocks base method.