task_generator.go ×5

Frontier kind: Code frontier

unlabeled · c_75619b4e4643

17 tests · 2751 LOC · 140 files · introduces 0 tests · 8 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges8 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
420 ranges2751 lines · 140 files · Browse complete extent
All tests (intent)
17 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.

1 file ranked by introduced lines: 8 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/workflow/task_generator.go 8 introduced LOC · 5 ranges

Open complete file

1058 // are only one of the task types that may need regeneration, so continue to
1059 // the timeout timers below even when none are pending.
1060 > for _, userTimerSequenceID := range r.getTimerSequence().LoadAndSortUserTimers() { task_generator.go
1061 r.mutableState.AddTasks(&tasks.UserTimerTask{
1062 // TaskID is set by shard
1068
1069 // (2) execution and run timeout timers
1070 > executionTimeoutTimer := r.mutableState.GetExecutionInfo().WorkflowExecutionExpirationTime task_generator.go
1071 > if !timeNotSet(executionTimeoutTimer) {
1072 r.mutableState.AddTasks(&tasks.WorkflowExecutionTimeoutTask{
1073 // TaskID is set by shard
1078 })
1079 }
1080 > runTimeoutTimer := r.mutableState.GetExecutionInfo().WorkflowRunExpirationTime task_generator.go
1081 > if !timeNotSet(runTimeoutTimer) {
1082 // Version must match the workflow's start version so the executor's
1083 // CheckTaskVersion passes for global namespaces (see timer_queue_active_task_executor.go).
1096 // (3) fast-forward timer — regenerate when configured so its real-time
1097 // VisibilityTimestamp tracks the new accumulated skip.
1098 > tsi := r.mutableState.GetExecutionInfo().GetTimeSkippingInfo() task_generator.go
1099 > if tsi.GetConfig().GetEnabled() {
1100 fastForward := tsi.GetFastForwardInfo()
1101 if fastForward != nil && !fastForward.GetHasReached() {
1114 // configured (ExecutionTime > StartTime) — a child workflow with !HadOrHasWorkflowTask but
1115 // no backoff has no real timer to regenerate.
1116 > if !r.mutableState.HadOrHasWorkflowTask() { task_generator.go
1117 ei := r.mutableState.GetExecutionInfo()
1118 executionTime := ei.GetExecutionTime().AsTime()