queue_scheduled.go ×3

Frontier kind: Code frontier

unlabeled · c_6968466ee79f

18 tests · 3727 LOC · 173 files · introduces 0 tests · 29 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges29 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
514 ranges3727 lines · 173 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: 29 introduced LOC across 4 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/queues/queue_scheduled.go 26 introduced LOC · 3 ranges

Open complete file

51 logger log.Logger,
52 metricsHandler metrics.Handler,
53 > ) *scheduledQueue { queue_scheduled.go
54 > paginationFnProvider := func(r Range) collection.PaginationFn[tasks.Task] {
55 return func(paginationToken []byte) ([]tasks.Task, []byte, error) {
56 ctx, cancel := newQueueIOContext()
87 }
88
89 > lookAheadCh := make(chan struct{}, 1) queue_scheduled.go
90 > readerCompletionFn := func(readerID int64) {
91 if readerID != DefaultReaderId {
92 return
99 }
100
101 > return &scheduledQueue{ queue_scheduled.go
102 > queueBase: newQueueBase(
103 > shard,
104 > category,
105 > paginationFnProvider,
106 > scheduler,
107 > rescheduler,
108 > executableFactory,
109 > options,
110 > hostRateLimiter,
111 > readerCompletionFn,
112 > GrouperNamespaceID{},
113 > logger,
114 > metricsHandler,
115 > ),
116 >
117 > timerGate: timer.NewLocalGate(shard.GetTimeSource()),
118 > newTimerCh: make(chan struct{}, 1),
119 >
120 > lookAheadCh: lookAheadCh,
121 > lookAheadRateLimitRequest: newReaderRequest(DefaultReaderId),
122 > }
123 }
124
go.temporal.io/server/service/history/queues/scheduler.go 3 introduced LOC · 1 range

Open complete file

212 }
213
214 > func (s *schedulerImpl) TaskChannelKeyFn() TaskChannelKeyFn { scheduler.go
215 > return s.taskChannelKeyFn
216 > }
217
218 // HandleBusyWorkflow implements BusyWorkflowHandler by delegating to the