archival_queue_task_executor.go ×2

Frontier kind: Code frontier

unlabeled · c_525cb5700653

26 tests · 3848 LOC · 172 files · introduces 0 tests · 27 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges27 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
559 ranges3848 lines · 172 files · Browse complete extent
All tests (intent)
26 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.

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

go.temporal.io/server/service/history/archival_queue_task_executor.go 18 introduced LOC · 2 ranges

Open complete file

61 ctx context.Context,
62 executable queues.Executable,
63 > ) queues.ExecuteResponse { archival_queue_task_executor.go
64 > task := executable.GetTask()
65 > taskType := queues.GetArchivalTaskTypeTagValue(task)
66 > tags := []metrics.Tag{
67 > getNamespaceTagByID(e.shardContext.GetNamespaceRegistry(), task.GetNamespaceID()),
68 > metrics.TaskTypeTag(taskType),
69 > // OperationTag is for consistency on tags with other executors,
70 > // since those tags will be used to emit a common set of metrics.
71 > metrics.OperationTag(taskType),
72 > }
73 >
74 > var err error
75 > switch task := task.(type) {
76 case *tasks.ArchiveExecutionTask:
77 err = e.processArchiveExecutionTask(ctx, task)
83 err = fmt.Errorf("task with invalid type sent to archival queue: %+v", task)
84 }
85 > return queues.ExecuteResponse{ archival_queue_task_executor.go
86 > ExecutionMetricTags: tags,
87 > ExecutedAsActive: true,
88 > ExecutionErr: err,
89 > }
90 }
91
go.temporal.io/server/service/history/archival/archiver_mock.go 5 introduced LOC · 1 range

Open complete file

30
31 // NewMockArchiver creates a new mock instance.
32 > func NewMockArchiver(ctrl *gomock.Controller) *MockArchiver { archiver_mock.go
33 > mock := &MockArchiver{ctrl: ctrl}
34 > mock.recorder = &MockArchiverMockRecorder{mock}
35 > return mock
36 > }
37
38 // EXPECT returns an object that allows the caller to indicate expected use.
go.temporal.io/server/service/history/interfaces/shard_context_mock.go 4 introduced LOC · 1 range

Open complete file

278
279 // GetArchivalMetadata indicates an expected call of GetArchivalMetadata.
280 > func (mr *MockShardContextMockRecorder) GetArchivalMetadata() *gomock.Call { shard_context_mock.go
281 > mr.mock.ctrl.T.Helper()
282 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetArchivalMetadata", reflect.TypeOf((*MockShardContext)(nil).GetArchivalMetadata))
283 > }
284
285 // GetCachedWorkflowContext mocks base method.