activities.go ×4

Frontier kind: Joint frontier

unlabeled · c_74d0eccd4be2

1 test · 3003 LOC · 146 files · introduces 1 test · 39 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges39 lines · 3 files
Tests
1 test

Contains — complete concept membership

All code (extent)
539 ranges3003 lines · 146 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: 39 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/worker/migration/activities.go 18 introduced LOC · 4 ranges

Open complete file

520 var stateTransitionCount, historyLength int64
521 if generateViaFrontend {
522 > archetype, err := a.archetypeIDToName(ctx, execution.ArchetypeID) activities.go
523 > if err != nil {
524 return err
525 }
526
527 > resp, err := a.adminClient.GenerateLastHistoryReplicationTasks(ctx, &adminservice.GenerateLastHistoryReplicationTasksRequest{ activities.go
528 > Namespace: namespaceName,
529 > Execution: &commonpb.WorkflowExecution{
530 > WorkflowId: execution.BusinessID,
531 > RunId: execution.RunID,
532 > },
533 > Archetype: archetype,
534 > ArchetypeId: execution.ArchetypeID,
535 > TargetClusters: targetClusters,
536 > })
537 > if err != nil {
538 return err
539 }
540 > stateTransitionCount = resp.StateTransitionCount activities.go
541 > historyLength = resp.HistoryLength
542 } else {
543 resp, err := a.HistoryClient.GenerateLastHistoryReplicationTasks(ctx, &historyservice.GenerateLastHistoryReplicationTasksRequest{
705 startIndex := 0
706 if activity.HasHeartbeatDetails(ctx) {
707 > if err := activity.GetHeartbeatDetails(ctx, &startIndex); err == nil { activities.go
708 > startIndex = startIndex + 1 // start from next one
709 > }
710 }
711
go.temporal.io/server/api/adminservicemock/v1/service_grpc.pb.mock.go 13 introduced LOC · 3 ranges

Open complete file

305
306 // GenerateLastHistoryReplicationTasks mocks base method.
307 > func (m *MockAdminServiceClient) GenerateLastHistoryReplicationTasks(ctx context.Context, in *adminservice.GenerateLastHistoryReplicationTasksRequest, opts ...grpc.CallOption) (*adminservice.GenerateLastHistoryReplicationTasksResponse, error) { service_grpc.pb.mock.go
308 > m.ctrl.T.Helper()
309 > varargs := []any{ctx, in}
310 > for _, a := range opts {
311 varargs = append(varargs, a)
312 }
313 > ret := m.ctrl.Call(m, "GenerateLastHistoryReplicationTasks", varargs...) service_grpc.pb.mock.go
314 > ret0, _ := ret[0].(*adminservice.GenerateLastHistoryReplicationTasksResponse)
315 > ret1, _ := ret[1].(error)
316 > return ret0, ret1
317 }
318
319 // GenerateLastHistoryReplicationTasks indicates an expected call of GenerateLastHistoryReplicationTasks.
320 > func (mr *MockAdminServiceClientMockRecorder) GenerateLastHistoryReplicationTasks(ctx, in any, opts ...any) *gomock.Call { service_grpc.pb.mock.go
321 > mr.mock.ctrl.T.Helper()
322 > varargs := append([]any{ctx, in}, opts...)
323 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateLastHistoryReplicationTasks", reflect.TypeOf((*MockAdminServiceClient)(nil).GenerateLastHistoryReplicationTasks), varargs...)
324 > }
325
326 // GetDLQMessages mocks base method.
go.temporal.io/server/api/adminservice/v1/request_response.pb.go 8 introduced LOC · 1 range

Open complete file

5051 func (*GenerateLastHistoryReplicationTasksRequest) ProtoMessage() {}
5052
5053 > func (x *GenerateLastHistoryReplicationTasksRequest) ProtoReflect() protoreflect.Message { request_response.pb.go
5054 > mi := &file_temporal_server_api_adminservice_v1_request_response_proto_msgTypes[82]
5055 > if x != nil {
5056 > ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
5057 > if ms.LoadMessageInfo() == nil {
5058 > ms.StoreMessageInfo(mi)
5059 > }
5060 > return ms
5061 }
5062 return mi.MessageOf(x)