visibility_queue_task_executor.go ×3

Frontier kind: Code frontier

unlabeled · c_be355e3fedbc

18 tests · 5427 LOC · 205 files · introduces 0 tests · 26 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges26 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
982 ranges5427 lines · 205 files · Browse complete extent
All tests (intent)
18 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: 26 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/visibility_queue_task_executor.go 22 introduced LOC · 3 ranges

Open complete file

74 ctx context.Context,
75 executable queues.Executable,
76 > ) queues.ExecuteResponse { visibility_queue_task_executor.go
77 > task := executable.GetTask()
78 > taskType := queues.GetVisibilityTaskTypeTagValue(task)
79 > namespaceTag, replicationState := getNamespaceTagAndReplicationStateByID(
80 > t.shardContext.GetNamespaceRegistry(),
81 > task.GetNamespaceID(),
82 > executable.GetWorkflowID(),
83 > )
84 > metricsTags := []metrics.Tag{
85 > namespaceTag,
86 > metrics.TaskTypeTag(taskType),
87 > metrics.OperationTag(taskType), // for backward compatibility
88 > }
89 >
90 > if replicationState == enumspb.REPLICATION_STATE_HANDOVER {
91 // TODO: exclude task types here if we believe it's safe & necessary to execute
92 // them during namespace handover.
103 }
104
105 > var err error visibility_queue_task_executor.go
106 > switch task := task.(type) {
107 case *tasks.StartExecutionVisibilityTask:
108 err = t.processStartExecution(ctx, task)
120 }
121
122 > return queues.ExecuteResponse{ visibility_queue_task_executor.go
123 > ExecutionMetricTags: metricsTags,
124 > ExecutedAsActive: true,
125 > ExecutionErr: err,
126 > }
127 }
128
go.temporal.io/server/service/history/queues/metrics.go 4 introduced LOC · 2 ranges

Open complete file

156 func GetVisibilityTaskTypeTagValue(
157 task tasks.Task,
158 > ) string { metrics.go
159 > switch task.(type) {
160 case *tasks.StartExecutionVisibilityTask:
161 return metrics.TaskTypeVisibilityTaskStartExecution
235 }
236 return GetStandbyTimerTaskTypeTagValue(task, chasmRegistry)
237 > case tasks.CategoryVisibility: metrics.go
238 > return GetVisibilityTaskTypeTagValue(task)
239 case tasks.CategoryArchival:
240 return GetArchivalTaskTypeTagValue(task)