task_reader.go ×4

Frontier kind: Code frontier

unlabeled · c_15881e6a8575

88 tests · 3694 LOC · 152 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)
617 ranges3694 lines · 152 files · Browse complete extent
All tests (intent)
88 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/matching/task_reader.go 13 introduced LOC · 4 ranges

Open complete file

178 // only error here is due to context cancellation which we also
179 // handle above
180 > _ = tr.addTasksToBuffer(ctx, batch.tasks) task_reader.go
181 > // There maybe more tasks. We yield now, but signal pump to check again later.
182 > tr.Signal()
183
184 case <-updateAckTimer.C:
232 // return as long as it grabs any tasks
233 if len(tasks) > 0 {
234 > return &getTasksBatchResponse{ task_reader.go
235 > tasks: tasks,
236 > readLevel: upper,
237 > isReadBatchDone: true,
238 > }, nil
239 > }
240 readLevel = upper
241 }
260 continue
261 }
262 > if err := tr.addSingleTaskToBuffer(ctx, t); err != nil { task_reader.go
263 return err
264 }
270 ctx context.Context,
271 task *persistencespb.AllocatedTaskInfo,
272 > ) error { task_reader.go
273 > tr.backlogMgr.taskAckManager.addTask(task.GetTaskId())
274 > select {
275 case tr.taskBuffer <- task:
276 return nil
go.temporal.io/server/service/matching/backlog_manager.go 2 introduced LOC · 1 range

Open complete file

167 c.signalIfFatal(err)
168 if err == nil {
169 > c.taskReader.Signal() backlog_manager.go
170 > }
171 return err
172 }