archival_queue_task_executor.go ×4

Frontier kind: Code frontier

unlabeled · c_6d81d9d7b210

25 tests · 3941 LOC · 175 files · introduces 0 tests · 15 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges15 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
583 ranges3941 lines · 175 files · Browse complete extent
All tests (intent)
25 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: 15 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/archival_queue_task_executor.go 13 introduced LOC · 4 ranges

Open complete file

74 var err error
75 switch task := task.(type) {
76 > case *tasks.ArchiveExecutionTask: archival_queue_task_executor.go
77 > err = e.processArchiveExecutionTask(ctx, task)
78 > if err == ErrMutableStateIsNil || err == ErrWorkflowExecutionIsStillRunning {
79 // If either of these errors are returned, it means that we can just drop the task.
80 err = nil
94 // Second, we unlock the mutable state and send the archival request to the archival.Archiver.
95 // Finally, we lock the mutable state again, and send a deletion follow-up task to the history engine.
96 > func (e *archivalQueueTaskExecutor) processArchiveExecutionTask(ctx context.Context, task *tasks.ArchiveExecutionTask) (err error) { archival_queue_task_executor.go
97 > logger := log.With(e.logger, tag.Task(task))
98 > request, err := e.getArchiveTaskRequest(ctx, logger, task)
99 > if err != nil {
100 return err
101 }
114 logger log.Logger,
115 task *tasks.ArchiveExecutionTask,
116 > ) (request *archival.Request, err error) { archival_queue_task_executor.go
117 > mutableState, err := e.loadAndVersionCheckMutableState(ctx, logger, task)
118 > if err != nil {
119 return nil, err
120 }
298 logger log.Logger,
299 task *tasks.ArchiveExecutionTask,
300 > ) (lockedMutableState *lockedMutableState, err error) { archival_queue_task_executor.go
301 > weContext, release, err := getWorkflowExecutionContextForTask(ctx, e.shardContext, e.workflowCache, task)
302 > if err != nil {
303 return nil, err
304 }
go.temporal.io/server/service/history/queues/metrics.go 2 introduced LOC · 1 range

Open complete file

237 case tasks.CategoryVisibility:
238 return GetVisibilityTaskTypeTagValue(task)
239 > case tasks.CategoryArchival: metrics.go
240 > return GetArchivalTaskTypeTagValue(task)
241 case tasks.CategoryOutbound:
242 return GetOutboundTaskTypeTagValue(task, isActive, chasmRegistry)