execution_mutable_state_task.go ×4

Frontier kind: Code frontier

unlabeled · c_3ee86dcb15cc

98 tests · 3331 LOC · 157 files · introduces 0 tests · 37 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges37 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
546 ranges3331 lines · 157 files · Browse complete extent
All tests (intent)
98 testsBrowse 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.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

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

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

go.temporal.io/server/common/persistence/tests/execution_mutable_state_task.go 23 introduced LOC · 4 ranges

Open complete file

573 exclusiveMaxTaskKey tasks.Key,
574 batchSize int,
575 > ) []tasks.Task { execution_mutable_state_task.go
576 > request := &p.GetHistoryTasksRequest{
577 > ShardID: s.ShardID,
578 > TaskCategory: category,
579 > InclusiveMinTaskKey: inclusiveMinTaskKey,
580 > ExclusiveMaxTaskKey: exclusiveMaxTaskKey,
581 > BatchSize: batchSize,
582 > }
583 > var loadedTasks []tasks.Task
584 > for {
585 > response, err := s.ExecutionManager.GetHistoryTasks(s.Ctx, request)
586 > s.NoError(err)
587 > s.LessOrEqual(len(response.Tasks), batchSize)
588 > loadedTasks = append(loadedTasks, response.Tasks...)
589 > if len(response.NextPageToken) == 0 {
590 > break
591 }
592 request.NextPageToken = response.NextPageToken
593 }
594 > return loadedTasks execution_mutable_state_task.go
595 }
596
657 func (s *testSerializer) SerializeTask(
658 task tasks.Task,
659 > ) (*commonpb.DataBlob, error) { execution_mutable_state_task.go
660 > if fakeTask, ok := task.(*tasks.FakeTask); ok {
661 data, err := proto.Marshal(&persistencespb.TransferTaskInfo{
662 NamespaceId: fakeTask.NamespaceID,
682 category tasks.Category,
683 blob *commonpb.DataBlob,
684 > ) (tasks.Task, error) { execution_mutable_state_task.go
685 > categoryID := category.ID()
686 > if categoryID != fakeImmediateTaskCategory.ID() &&
687 > categoryID != fakeScheduledTaskCategory.ID() {
688 return s.Serializer.DeserializeTask(category, blob)
689 }
go.temporal.io/server/common/persistence/execution_manager.go 14 introduced LOC · 2 ranges

Open complete file

938 ctx context.Context,
939 input *AddHistoryTasksRequest,
940 > ) error { execution_manager.go
941 > serializedTasks, err := serializeTasks(m.serializer, input.Tasks)
942 > if err != nil {
943 return err
944 }
945
946 > archetypeID, _ := m.assertAndConvertArchetypeID(input.ArchetypeID, "AddHistoryTasks") execution_manager.go
947 > return m.persistence.AddHistoryTasks(ctx, &InternalAddHistoryTasksRequest{
948 > ShardID: input.ShardID,
949 > RangeID: input.RangeID,
950 >
951 > NamespaceID: input.NamespaceID,
952 > WorkflowID: input.WorkflowID,
953 > ArchetypeID: archetypeID,
954 >
955 > Tasks: serializedTasks,
956 > })
957 }
958