timeskipping_timer_task.go ×7

Frontier kind: Code frontier

unlabeled · c_cc33404c294d

11 tests · 6772 LOC · 245 files · introduces 0 tests · 37 LOC · 4 files

Introduces — evidence that enters the hierarchy at this concept

Code
10 ranges37 lines · 4 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1289 ranges6772 lines · 245 files · Browse complete extent
All tests (intent)
11 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: 37 introduced LOC across 10 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/tasks/timeskipping_timer_task.go 29 introduced LOC · 7 ranges

Open complete file

31 )
32
33 > func (t *TimeSkippingTimerTask) GetKey() Key { timeskipping_timer_task.go
34 > return NewKey(t.VisibilityTimestamp, t.TaskID)
35 > }
36
37 > func (t *TimeSkippingTimerTask) GetArchetypeID() uint32 { timeskipping_timer_task.go
38 > return t.ArchetypeID
39 > }
40
41 > func (t *TimeSkippingTimerTask) GetTaskID() int64 { timeskipping_timer_task.go
42 > return t.TaskID
43 > }
44
45 func (t *TimeSkippingTimerTask) SetTaskID(id int64) {
47 }
48
49 > func (t *TimeSkippingTimerTask) GetVisibilityTime() time.Time { timeskipping_timer_task.go
50 > return t.VisibilityTimestamp
51 > }
52
53 func (t *TimeSkippingTimerTask) SetVisibilityTime(visibilityTime time.Time) {
55 }
56
57 > func (t *TimeSkippingTimerTask) GetCategory() Category { timeskipping_timer_task.go
58 > return CategoryTimer
59 > }
60
61 > func (t *TimeSkippingTimerTask) GetType() enumsspb.TaskType { timeskipping_timer_task.go
62 > return enumsspb.TASK_TYPE_TIMESKIPPING_TIMER
63 > }
64
65 > func (t *TimeSkippingTimerTask) String() string { timeskipping_timer_task.go
66 > vt := t.VersionedTransition
67 > return fmt.Sprintf("TimeSkippingTimerTask{WorkflowKey: %s, VisibilityTimestamp: %v, TaskID: %v, FailoverVersion: %v, TransitionCount: %v, ArchetypeID: %v}",
68 > t.WorkflowKey.String(),
69 > t.VisibilityTimestamp,
70 > t.TaskID,
71 > vt.GetNamespaceFailoverVersion(),
72 > vt.GetTransitionCount(),
73 > t.ArchetypeID,
74 > )
75 > }
go.temporal.io/server/service/history/tasks/utils.go 4 introduced LOC · 1 range

Open complete file

113 case *StateMachineTimerTask:
114 eventID = common.FirstEventID
115 > case *TimeSkippingTimerTask: utils.go
116 > // time skipping timer tasks supports both for workflow and chasm executions,
117 > // and it doesn't depend on eventID, so it uses the dummy chasm task eventID here.
118 > return getChasmTaskEventID()
119 case *ChasmTaskPure:
120 return getChasmTaskEventID()
go.temporal.io/server/api/enums/v1/task.pb.go 2 introduced LOC · 1 range

Open complete file

295 case TASK_TYPE_WORKER_COMMANDS:
296 return "WorkerCommands"
297 > case TASK_TYPE_TIMESKIPPING_TIMER: task.pb.go
298 > return "TimeskippingTimer"
299 default:
300 return strconv.Itoa(int(x))
go.temporal.io/server/service/history/queues/metrics.go 2 introduced LOC · 1 range

Open complete file

114 case *tasks.ChasmTaskPure:
115 return metrics.TaskTypeTimerActiveTaskChasmPureTask
116 > case *tasks.TimeSkippingTimerTask: metrics.go
117 > return metrics.TaskTypeTimerActiveTaskTimeSkippingTimer
118 default:
119 return prefix + task.GetType().String()