workflow_run_timer.go ×2

Frontier kind: Code frontier

unlabeled · c_cc942bdb1a8c

6 tests · 7791 LOC · 250 files · introduces 0 tests · 22 LOC · 4 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges22 lines · 4 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1536 ranges7791 lines · 250 files · Browse complete extent
All tests (intent)
6 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.

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

go.temporal.io/server/service/history/tasks/workflow_run_timer.go 11 introduced LOC · 2 ranges

Open complete file

32 }
33
34 > func (u *WorkflowRunTimeoutTask) GetTaskID() int64 { workflow_run_timer.go
35 > return u.TaskID
36 > }
37
38 func (u *WorkflowRunTimeoutTask) SetTaskID(id int64) {
56 }
57
58 > func (u *WorkflowRunTimeoutTask) String() string { workflow_run_timer.go
59 > return fmt.Sprintf("WorkflowRunTimeoutTask{WorkflowKey: %s, VisibilityTimestamp: %v, TaskID: %v, Version: %v}",
60 > u.WorkflowKey.String(),
61 > u.VisibilityTimestamp,
62 > u.TaskID,
63 > u.Version,
64 > )
65 > }
go.temporal.io/server/service/history/timer_queue_task_executor_base.go 7 introduced LOC · 1 range

Open complete file

182 mutableState historyi.MutableState,
183 task *tasks.WorkflowRunTimeoutTask,
185 > executionInfo := mutableState.GetExecutionInfo()
186 >
187 > // Check if workflow execution timeout is not expired
188 > // This can happen if the workflow is reset but old timer task is still fired.
189 > return t.isValidExpirationTime(mutableState, task, executionInfo.WorkflowRunExpirationTime)
190 > }
191
192 func (t *timerQueueTaskExecutorBase) isValidWorkflowExecutionTimeoutTask(
go.temporal.io/server/service/history/queues/metrics.go 2 introduced LOC · 1 range

Open complete file

100 case *tasks.UserTimerTask:
101 return metrics.TaskTypeTimerActiveTaskUserTimer
102 > case *tasks.WorkflowRunTimeoutTask: metrics.go
103 > return metrics.TaskTypeTimerActiveTaskWorkflowRunTimeout
104 case *tasks.WorkflowExecutionTimeoutTask:
105 return metrics.TaskTypeTimerActiveTaskWorkflowExecutionTimeout
go.temporal.io/server/service/history/tasks/utils.go 2 introduced LOC · 1 range

Open complete file

103 case *ActivityRetryTimerTask:
104 eventID = task.EventID
105 > case *WorkflowRunTimeoutTask: utils.go
106 > eventID = common.FirstEventID
107 case *WorkflowExecutionTimeoutTask:
108 eventID = common.FirstEventID