task_generator.go ×2

Frontier kind: Code frontier

unlabeled · c_848f9c205685

2 tests · 4120 LOC · 192 files · introduces 0 tests · 36 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges36 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
606 ranges4120 lines · 192 files · Browse complete extent
All tests (intent)
2 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.

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

go.temporal.io/server/service/history/workflow/task_generator.go 30 introduced LOC · 2 ranges

Open complete file

836 }
837
838 > if isWorkflow { task_generator.go
839 > taskEquivalents = make([]tasks.Task, 0, len(r.mutableState.GetPendingActivityInfos())+1)
840 > taskEquivalents = append(taskEquivalents, &tasks.HistoryReplicationTask{
841 > // TaskID, VisibilityTimestamp is set by shard
842 > WorkflowKey: workflowKey,
843 > FirstEventID: executionInfo.LastFirstEventId,
844 > NextEventID: nextEventID,
845 > Version: lastItem.GetVersion(),
846 > TargetClusters: targetClusters,
847 > })
848 > activityIDs := make(map[int64]struct{}, len(r.mutableState.GetPendingActivityInfos()))
849 > for activityID := range r.mutableState.GetPendingActivityInfos() {
850 > activityIDs[activityID] = struct{}{}
851 > }
852 > taskEquivalents = append(taskEquivalents, convertSyncActivityInfos(
853 > now,
854 > workflowKey,
855 > r.mutableState.GetPendingActivityInfos(),
856 > activityIDs,
857 > targetClusters,
858 > )...)
859 > taskEquivalents = append(taskEquivalents, &tasks.SyncHSMTask{
860 > WorkflowKey: workflowKey,
861 > // TaskID and VisibilityTimestamp are set by shard
862 > TargetClusters: targetClusters,
863 > })
864 }
865
866 > if r.mutableState.IsTransitionHistoryEnabled() && task_generator.go
867 > // even though current cluster may enabled state transition, but transition history can be cleared
868 > // by processing a replication task from a cluster that has state transition disabled
869 > len(executionInfo.TransitionHistory) > 0 {
870
871 transitionHistory := executionInfo.TransitionHistory
go.temporal.io/server/service/history/tasks/activity_replication_task.go 3 introduced LOC · 1 range

Open complete file

53 }
54
55 > func (a *SyncActivityTask) GetType() enumsspb.TaskType { activity_replication_task.go
56 > return enumsspb.TASK_TYPE_REPLICATION_SYNC_ACTIVITY
57 > }
go.temporal.io/server/service/history/tasks/sync_hsm_task.go 3 introduced LOC · 1 range

Open complete file

43 }
44
45 > func (a *SyncHSMTask) GetType() enumsspb.TaskType { sync_hsm_task.go
46 > return enumsspb.TASK_TYPE_REPLICATION_SYNC_HSM
47 > }