transfer_queue_standby_task_executor.go ×5

Frontier kind: Code frontier

unlabeled · c_8a59718ab911

3 tests · 5266 LOC · 216 files · introduces 0 tests · 29 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges29 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
864 ranges5266 lines · 216 files · Browse complete extent
All tests (intent)
3 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: 29 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/transfer_queue_standby_task_executor.go 27 introduced LOC · 5 ranges

Open complete file

107 case *tasks.DeleteExecutionTask:
108 err = t.processDeleteExecutionTask(ctx, task, false)
109 > case *tasks.ChasmTask: transfer_queue_standby_task_executor.go
110 > task.Attempt = executable.Attempt()
111 > err = t.executeChasmSideEffectTransferTask(ctx, task)
112 default:
113 err = errUnknownTransferTask
124 ctx context.Context,
125 task *tasks.ChasmTask,
127 > actionFn := func(
128 > ctx context.Context,
129 > wfContext historyi.WorkflowContext,
130 > ms historyi.MutableState,
131 > _ historyi.ReleaseWorkflowContextFunc,
132 > ) (any, error) {
133 > isTaskInTree, isValid, err := validateChasmSideEffectTask(ctx, ms, task)
134 > if err != nil {
135 return nil, err
136 }
137 > if !isTaskInTree || !isValid { transfer_queue_standby_task_executor.go
138 // Replication has removed the logical task, or the component reports it
139 // invalid — drop the physical task.
143 // Task still exists in the tree; retry until the active cluster executes
144 // and replicates the resulting state change.
145 > return ms.ChasmTree(), nil transfer_queue_standby_task_executor.go
146 }
147
148 > chasmTaskType, _ := t.shardContext.ChasmRegistry().TaskFqnByID(task.Info.GetTypeId()) transfer_queue_standby_task_executor.go
149 > return t.processTransfer(
150 > ctx,
151 > true,
152 > task,
153 > actionFn,
154 > getStandbyPostActionFn(
155 > task,
156 > t.getCurrentTime,
157 > t.config.ChasmStandbyTaskDiscardDelay(chasmTaskType),
158 > t.discardChasmTask,
159 > ),
160 > )
161 }
162
go.temporal.io/server/service/history/queues/metrics.go 2 introduced LOC · 1 range

Open complete file

78 case *tasks.DeleteExecutionTask:
79 return metrics.TaskTypeTransferStandbyTaskDeleteExecution
80 > case *tasks.ChasmTask: metrics.go
81 > return prefix + "." + getCHASMTaskTypeTagValue(t, chasmRegistry)
82 default:
83 return prefix + task.GetType().String()