invoker_tasks.go ×3

Frontier kind: Code frontier

unlabeled · c_6242c139e9ad

2 tests · 5449 LOC · 172 files · introduces 0 tests · 28 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges28 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1252 ranges5449 lines · 172 files · Browse complete extent
All tests (intent)
2 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: 28 introduced LOC across 4 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/chasm/lib/scheduler/invoker_tasks.go 24 introduced LOC · 3 ranges

Open complete file

452 var totalMissedCatchup int64
453 for _, count := range result.missedCatchupByActionRunning {
454 > totalMissedCatchup += count invoker_tasks.go
455 > }
456 scheduler.recordActionResult(&schedulerActionResult{
457 overlapSkipped: result.overlapSkipped,
464 }
465 for actionRunning, count := range result.missedCatchupByActionRunning {
466 > newTaggedMetricsHandler(h.metricsHandler, scheduler).WithTags( invoker_tasks.go
467 > metrics.StringTag(metrics.ScheduleMissedReasonTag, metrics.ScheduleMissedReasonBufferExpired),
468 > metrics.StringTag(metrics.ScheduleActionRunningTag, fmt.Sprintf("%t", actionRunning)),
469 > ).Counter(metrics.ScheduleMissedCatchupWindow.Name()).Record(count)
470 > }
471
472 // Update internal state and create new tasks.
521 deadline := h.startWorkflowDeadline(ctx, scheduler, start)
522 if ctx.Now(invoker).After(deadline) {
523 > // Action was buffered in time but expired before execution invoker_tasks.go
524 > // (e.g., due to overlap deferral, retries, or system delay).
525 > // Only emit the metric if the schedule would have run this
526 > // start -- skip paused or action-exhausted schedules.
527 > if start.Manual || scheduler.useScheduledAction(false) {
528 > // Determine if a running action contributed: either one is still
529 > // running, or the previous action's CloseTime (stored in DesiredTime)
530 > // was already past this start's deadline.
531 > // Note: if no prior action completed, DesiredTime is zero-valued,
532 > // so After(deadline) is false, correctly yielding actionRunning=false.
533 > actionRunning := isRunning ||
534 > start.GetDesiredTime().AsTime().After(deadline)
535 > result.missedCatchupByActionRunning[actionRunning]++
536 > }
537 > result.discardStarts = append(result.discardStarts, start)
538 > droppedCounter.Record(1, metrics.ReasonTag(bufferedStartDroppedMissedCatchup))
539 > continue
540 }
541
go.temporal.io/server/api/schedule/v1/message.pb.go 4 introduced LOC · 1 range

Open complete file

119 }
120
121 > func (x *BufferedStart) GetDesiredTime() *timestamppb.Timestamp { message.pb.go
122 > if x != nil {
123 > return x.DesiredTime
124 > }
125 return nil
126 }