transfer_queue_standby_task_executor.go ×4

Frontier kind: Code frontier

unlabeled · c_60558bad1202

3 tests · 8046 LOC · 249 files · introduces 0 tests · 22 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges22 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1594 ranges8046 lines · 249 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: 22 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/transfer_queue_standby_task_executor.go 20 introduced LOC · 4 ranges

Open complete file

89 var err error
90 switch task := task.(type) {
91 > case *tasks.ActivityTask: transfer_queue_standby_task_executor.go
92 > err = t.processActivityTask(ctx, task)
93 case *tasks.WorkflowTask:
94 err = t.processWorkflowTask(ctx, task)
195 ctx context.Context,
196 transferTask *tasks.ActivityTask,
198 > processTaskIfClosed := false
199 > actionFn := func(_ context.Context, wfContext historyi.WorkflowContext, mutableState historyi.MutableState, _ historyi.ReleaseWorkflowContextFunc) (any, error) {
200 > activityInfo, ok := mutableState.GetActivityInfo(transferTask.ScheduledEventID)
201 > if !ok {
202 return nil, nil
203 }
204
205 > if activityInfo.Paused { transfer_queue_standby_task_executor.go
206 return nil, nil
207 }
223 }
224
225 > return t.processTransfer( transfer_queue_standby_task_executor.go
226 > ctx,
227 > processTaskIfClosed,
228 > transferTask,
229 > actionFn,
230 > getStandbyPostActionFn(
231 > transferTask,
232 > t.getCurrentTime,
233 > t.config.StandbyTaskMissingEventsDiscardDelay(transferTask.GetType()),
234 > t.pushActivity,
235 > ),
236 > )
237 }
238
go.temporal.io/server/service/history/queues/metrics.go 2 introduced LOC · 1 range

Open complete file

62 prefix := "TransferStandby"
63 switch t := task.(type) {
64 > case *tasks.ActivityTask: metrics.go
65 > return metrics.TaskTypeTransferStandbyTaskActivity
66 case *tasks.WorkflowTask:
67 return metrics.TaskTypeTransferStandbyTaskWorkflowTask