mutable_state_impl.go ×4

Frontier kind: Code frontier

unlabeled · c_fc66a05946da

46 tests · 6130 LOC · 204 files · introduces 0 tests · 29 LOC · 4 files

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges29 lines · 4 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1210 ranges6130 lines · 204 files · Browse complete extent
All tests (intent)
46 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: 29 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/workflow/workflow_task_state_machine.go 17 introduced LOC · 2 ranges

Open complete file

419 startEvent *historypb.HistoryEvent,
420 bypassTaskGeneration bool,
421 > ) (int64, error) { workflow_task_state_machine.go
422 > // below handles the following cases:
423 > // 1. if not continue as new & if workflow has no parent
424 > // -> schedule workflow task & schedule delayed workflow task
425 > // 2. if not continue as new & if workflow has parent
426 > // -> this function should not be called during workflow start, but should be called as
427 > // part of schedule workflow task in 2 phase commit
428 > //
429 > // if continue as new
430 > // 1. whether has parent workflow or not
431 > // -> schedule workflow task & schedule delayed workflow task
432 >
433 > startAttr := startEvent.GetWorkflowExecutionStartedEventAttributes()
434 > workflowTaskBackoffDuration := timestamp.DurationValue(startAttr.GetFirstWorkflowTaskBackoff())
435 >
436 > if workflowTaskBackoffDuration != 0 {
437 err := m.ms.taskGenerator.GenerateDelayedWorkflowTasks(
438 startEvent,
439 )
440 return 0, err
442 info, err := m.AddWorkflowTaskScheduledEvent(
443 bypassTaskGeneration,
go.temporal.io/server/service/history/workflow/mutable_state_impl.go 7 introduced LOC · 4 ranges

Open complete file

3471 startEvent *historypb.HistoryEvent,
3472 bypassTaskGeneration bool,
3473 > ) (int64, error) { mutable_state_impl.go
3474 > opTag := tag.WorkflowActionWorkflowTaskScheduled
3475 > if err := ms.checkMutability(opTag); err != nil {
3476 return common.EmptyEventID, err
3477 }
3478 > scheduleEventID, err := ms.workflowTaskManager.AddFirstWorkflowTaskScheduled(startEvent, bypassTaskGeneration) mutable_state_impl.go
3479 > if err != nil {
3480 return 0, err
3481 }
3482 > if parentClock != nil { mutable_state_impl.go
3483 ms.executionInfo.ParentClock = parentClock
3484 }
3485 > return scheduleEventID, nil mutable_state_impl.go
3486 }
3487
go.temporal.io/server/service/history/tasks/start_visibility_task.go 3 introduced LOC · 1 range

Open complete file

43 }
44
45 > func (t *StartExecutionVisibilityTask) SetVisibilityTime(timestamp time.Time) { start_visibility_task.go
46 > t.VisibilityTimestamp = timestamp
47 > }
48
49 func (t *StartExecutionVisibilityTask) GetCategory() Category {
go.temporal.io/server/api/enums/v1/task.pb.go 2 introduced LOC · 1 range

Open complete file

261 case TASK_TYPE_WORKFLOW_BACKOFF_TIMER:
262 return "WorkflowBackoffTimer"
263 > case TASK_TYPE_VISIBILITY_START_EXECUTION: task.pb.go
264 > return "VisibilityStartExecution"
265 case TASK_TYPE_VISIBILITY_UPSERT_EXECUTION:
266 return "VisibilityUpsertExecution"