handler.go ×3

Frontier kind: Code frontier

unlabeled · c_264e7bb1ab17

3 tests · 3129 LOC · 149 files · introduces 0 tests · 26 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges26 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
518 ranges3129 lines · 149 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.

3 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/worker/scanner/taskqueue/db.go 14 introduced LOC · 1 range

Open complete file

22 exclusiveMaxTaskID int64,
23 limit int,
24 > ) (int, error) { db.go
25 > var n int
26 > var err error
27 > err = s.retryForever(func() error {
28 > n, err = s.db.CompleteTasksLessThan(ctx, &p.CompleteTasksLessThanRequest{
29 > NamespaceID: key.NamespaceID,
30 > TaskQueueName: key.TaskQueueName,
31 > TaskType: key.TaskQueueType,
32 > ExclusiveMaxTaskID: exclusiveMaxTaskID,
33 > Limit: limit,
34 > })
35 > return err
36 > })
37 > return n, err
38 }
39
go.temporal.io/server/common/persistence/data_interfaces_mock.go 7 introduced LOC · 1 range

Open complete file

659
660 // CompleteTasksLessThan mocks base method.
661 > func (m *MockTaskManager) CompleteTasksLessThan(ctx context.Context, request *CompleteTasksLessThanRequest) (int, error) { data_interfaces_mock.go
662 > m.ctrl.T.Helper()
663 > ret := m.ctrl.Call(m, "CompleteTasksLessThan", ctx, request)
664 > ret0, _ := ret[0].(int)
665 > ret1, _ := ret[1].(error)
666 > return ret0, ret1
667 > }
668
669 // CompleteTasksLessThan indicates an expected call of CompleteTasksLessThan.
go.temporal.io/server/service/worker/scanner/taskqueue/handler.go 5 introduced LOC · 3 ranges

Open complete file

63 }
64
65 > lastTaskID := resp.Tasks[nTasks-1].GetTaskId() handler.go
66 > if _, err = s.completeTasks(s.lifecycleCtx, key, lastTaskID+1, nTasks); err != nil {
67 return handlerStatusErr
68 }
69
70 > nDeleted += nTasks handler.go
71 > if nTasks < taskBatchSize {
72 s.tryDeleteTaskQueue(key, state)
73 return handlerStatusDone
75 }
76
77 > return handlerStatusDefer handler.go
78 }
79