timeskipping.go ×5

Frontier kind: Joint frontier

unlabeled · c_a41ddc47afaf

1 test · 9746 LOC · 262 files · introduces 1 test · 11 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges11 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
2121 ranges9746 lines · 262 files · Browse complete extent
All tests (intent)
1 testBrowse 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.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

2 files ranked by introduced lines: 11 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

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

Open complete file

325
326 // (2) gate by workflow state and status
327 > if !ms.IsWorkflowExecutionRunning() { timeskipping.go
328 noSkippingReason = "workflow is not running"
329 return false
330 }
331 > if ms.IsWorkflowExecutionStatusPaused() { timeskipping.go
332 noSkippingReason = "workflow is paused"
333 return false
336 // (3) gate by inflight work
337 // HasPendingWorkflowTask covers both normal and speculative workflow tasks
338 > if ms.HasPendingWorkflowTask() { timeskipping.go
339 noSkippingReason = "has pending workflow task"
340 return false
345 // strict future check is what keeps a just-scheduled or already-due activity (next
346 // attempt <= now) blocking.
347 > for _, ai := range ms.GetPendingActivityInfos() { timeskipping.go
348 > // if this activity is just a retry with backoff scheduled in the future
349 > if activityPendingRetry(ai) && ms.Now().Before(ai.GetScheduledTime().AsTime()) {
350 continue
351 }
352 > noSkippingReason = "has pending activity" timeskipping.go
353 > return false
354 }
355 if nexusoperations.MachineCollection(ms.HSM()).Size() > 0 {
go.temporal.io/server/service/history/timer_queue_active_task_executor.go 3 introduced LOC · 2 ranges

Open complete file

239 ai, heartbeatTimeoutVis, ok := mutableState.GetActivityInfoWithTimerHeartbeat(task.EventID)
240 if isHeartBeatTask && ok && queues.IsTimeExpired(task, task.GetVisibilityTime(), mutableState.ToRealTime(heartbeatTimeoutVis)) {
241 > if err := mutableState.UpdateActivityTaskStatusWithTimerHeartbeat( timer_queue_active_task_executor.go
242 > ai.ScheduledEventId, ai.TimerTaskStatus&^workflow.TimerTaskStatusCreatedHeartbeat, nil); err != nil {
243 return err
244 }
245 > updateMutableState = true timer_queue_active_task_executor.go
246 }
247