transfer_queue_active_task_executor.go ×3

Frontier kind: Code frontier

unlabeled · c_e3e11eb77a54

6 tests · 9192 LOC · 261 files · introduces 0 tests · 24 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges24 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1946 ranges9192 lines · 261 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.

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

go.temporal.io/server/service/history/transfer_queue_active_task_executor.go 13 introduced LOC · 3 ranges

Open complete file

947 }
948
949 > versioningOverride := attributes.GetVersioningOverride() transfer_queue_active_task_executor.go
950 > if err := worker_versioning.ValidateVersioningOverrideStructure(versioningOverride); err != nil {
951 return t.recordStartChildExecutionFailed(
952 ctx,
958 }
959
960 > var sourceVersionStamp *commonpb.WorkerVersionStamp transfer_queue_active_task_executor.go
961 > var inheritedBuildID string
962 > var inheritedPinnedVersion *deploymentpb.WorkerDeploymentVersion
963 > var inheritedVersioningOverride *workflowpb.VersioningOverride
964 > var inheritedAutoUpgradeInfo *deploymentpb.InheritedAutoUpgradeInfo
965 > // If a VersioningOverride is present at child workflow start, it takes precedence over inherited information.
966 > if versioningOverride == nil {
967 if attributes.InheritBuildId && mutableState.GetEffectiveVersioningBehavior() == enumspb.VERSIONING_BEHAVIOR_UNSPECIFIED { //nolint:staticcheck // SA1019: worker versioning v0.2
968 // Do not set inheritedBuildId for v3 wfs.
1043 // Hence we need to check the child workflow ID and attempt to reconnect before proceeding to start a new instance of the child.
1044 // This path is usually taken when the parent is being reset and the reset point (i.e baseWorkflowInfo.LowestCommonAncestorEventId) is after the child was initiated.
1045 > shouldTerminateAndStartChild := false transfer_queue_active_task_executor.go
1046 > resetChildID := fmt.Sprintf("%s:%s", attributes.GetWorkflowType().Name, attributes.GetWorkflowId())
1047 > baseWorkflowInfo := mutableState.GetBaseWorkflowInfo()
1048 > if mutableState.IsResetRun() && baseWorkflowInfo != nil && baseWorkflowInfo.LowestCommonAncestorEventId >= childInfo.InitiatedEventId { // child was started before the reset point.
1049 childRunID, childFirstRunID, err := t.verifyChildWorkflow(ctx, mutableState, targetNamespaceEntry, attributes.WorkflowId)
1050 if err != nil {
go.temporal.io/server/service/history/workflow/mutable_state_impl.go 7 introduced LOC · 2 ranges

Open complete file

1102 // and this method will NOT try to load WorkflowExecutionStarted event to
1103 // get that information.
1104 > func (ms *MutableStateImpl) IsResetRun() bool { mutable_state_impl.go
1105 > originalExecutionRunID := ms.GetExecutionInfo().GetOriginalExecutionRunId()
1106 > return len(originalExecutionRunID) != 0 && originalExecutionRunID != ms.GetExecutionState().GetRunId()
1107 > }
1108
1109 func (ms *MutableStateImpl) SetChildrenInitializedPostResetPoint(children map[string]*persistencespb.ResetChildInfo) {
1116 }
1117
1118 > func (ms *MutableStateImpl) GetBaseWorkflowInfo() *workflowspb.BaseExecutionInfo { mutable_state_impl.go
1119 > return ms.executionInfo.BaseExecutionInfo
1120 > }
1121
1122 func (ms *MutableStateImpl) GetExecutionInfo() *persistencespb.WorkflowExecutionInfo {
go.temporal.io/server/api/persistence/v1/executions.pb.go 4 introduced LOC · 1 range

Open complete file

1047 }
1048
1049 > func (x *WorkflowExecutionInfo) GetOriginalExecutionRunId() string { executions.pb.go
1050 > if x != nil {
1051 > return x.OriginalExecutionRunId
1052 > }
1053 return ""
1054 }