}
err := t.applyParentClosePolicy(ctx, parentExecution, childInfo)
switch err.(type) {
case nil:
metrics.ParentClosePolicyProcessorSuccess.With(scope).Record(1)
Frontier kind: Code frontier
unlabeled · c_565fde4559e7
2 tests · 8882 LOC · 263 files · introduces 0 tests · 57 LOC · 2 files
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.
Every exact file and test below is linked only from the concept that introduces it.
go.temporal.io/server/service/history/historybuilder/TestHistoryBuilder_AddDifferentEvents/When_StartChildWorkflowExecutionInitiatedEvent_added_it_will_be_placed_in_memLatestBatchgo.temporal.io/server/service/history/historybuilder/TestHistoryBuilder_AddDifferentEvents_WorkflowFinishEvents/When_StartChildWorkflowExecutionInitiatedEvent_added_it_will_be_placed_in_memLatestBatchgo.temporal.io/server/service/history/historybuilder/TestHistoryBuilder_AddDifferentEvents/When_WorkflowTaskCompletedEvent_added_it_will_be_placed_in_memLatestBatchgo.temporal.io/server/service/history/historybuilder/TestHistoryBuilder_AddDifferentEvents_WorkflowFinishEvents/When_WorkflowTaskCompletedEvent_added_it_will_be_placed_in_memLatestBatchgo.temporal.io/server/service/history/historybuilder/TestHistoryBuilder_AddDifferentEvents/When_CompletedWorkflowEvent_added_it_will_be_placed_in_memLatestBatchgo.temporal.io/server/service/history/historybuilder/TestHistoryBuilder_AddDifferentEvents_WorkflowFinishEvents/When_CompletedWorkflowEvent_added_it_will_be_placed_in_memLatestBatchgo.temporal.io/server/service/history/historybuilder/TestHistoryBuilder_AddDifferentEvents/When_WorkflowTaskScheduledEvent_added_it_will_be_placed_in_memLatestBatchgo.temporal.io/server/service/history/historybuilder/TestHistoryBuilder_AddDifferentEvents_AssignmentEventId/Adding_batched_event_will_set_event_id_to_next_event_id_allocated_by_HistoryBuildergo.temporal.io/server/service/history/historybuilder/TestHistoryBuilder_AddDifferentEvents_WorkflowFinishEvents/When_WorkflowTaskScheduledEvent_added_go.temporal.io/server/service/history/historybuilder/TestHistoryBuilder_AddDifferentEvents/When_WorkflowTaskStartedEvent_added_it_will_be_placed_in_memLatestBatchgo.temporal.io/server/service/history/historybuilder/TestHistoryBuilder_AddDifferentEvents_WorkflowFinishEvents/When_WorkflowTaskStartedEvent_added_go.temporal.io/server/common/persistence/client/TestQuotasSuite/TestAPITypeCallOriginPriorityOverrideMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestBackgroundTypeAPIPriorityOverrideMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestCallerTypeDefaultPriorityMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestRequestPrioritiesOrderedEvery collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Every collected source range enters the hierarchy at exactly one concept.
2 files ranked by introduced lines: 57 introduced LOC across 10 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
}
err := t.applyParentClosePolicy(ctx, parentExecution, childInfo)
switch err.(type) {
case nil:
metrics.ParentClosePolicyProcessorSuccess.With(scope).Record(1)
parentExecution *commonpb.WorkflowExecution,
childInfo *persistencespb.ChildExecutionInfo,
switch childInfo.ParentClosePolicy {
case enumspb.PARENT_CLOSE_POLICY_ABANDON:
// noop
return nil
childNamespaceID := namespace.ID(childInfo.GetNamespaceId())
if childNamespaceID.IsEmpty() {
// TODO (alex): Remove after childInfo.NamespaceId is back filled. Backward compatibility: old childInfo doesn't have NamespaceId set.
// TODO (alex): consider reverse lookup of namespace name from ID but namespace name is not actually used.
}
}
_, err := t.historyRawClient.TerminateWorkflowExecution(ctx, &historyservice.TerminateWorkflowExecutionRequest{
transfer_queue_active_task_executor.go
NamespaceId: childNamespaceID.String(),
TerminateRequest: &workflowservice.TerminateWorkflowExecutionRequest{
Namespace: childInfo.GetNamespace(),
WorkflowExecution: &commonpb.WorkflowExecution{
WorkflowId: childInfo.GetStartedWorkflowId(),
},
// Include StartedRunID as FirstExecutionRunID on the request to allow child to be terminated across runs.
// If the child does continue as new it still propagates the RunID of first execution.
FirstExecutionRunId: childInfo.GetStartedRunId(),
Reason: "by parent close policy",
Identity: consts.IdentityHistoryService,
},
ExternalWorkflowExecution: parentExecution,
ChildWorkflowOnly: true,
})
return err
childNamespaceID := namespace.ID(childInfo.GetNamespaceId())
if childNamespaceID.IsEmpty() {
// TODO (alex): Remove after childInfo.NamespaceId is back filled. Backward compatibility: old childInfo doesn't have NamespaceId set.
// TODO (alex): consider reverse lookup of namespace name from ID but namespace name is not actually used.
}
_, err := t.historyRawClient.RequestCancelWorkflowExecution(ctx, &historyservice.RequestCancelWorkflowExecutionRequest{
transfer_queue_active_task_executor.go
NamespaceId: childNamespaceID.String(),
CancelRequest: &workflowservice.RequestCancelWorkflowExecutionRequest{
Namespace: childInfo.GetNamespace(),
WorkflowExecution: &commonpb.WorkflowExecution{
WorkflowId: childInfo.GetStartedWorkflowId(),
},
// Include StartedRunID as FirstExecutionRunID on the request to allow child to be canceled across runs.
// If the child does continue as new it still propagates the RunID of first execution.
FirstExecutionRunId: childInfo.GetStartedRunId(),
Identity: consts.IdentityHistoryService,
},
ExternalWorkflowExecution: parentExecution,
ChildWorkflowOnly: true,
})
return err
default:
}
func (x *TerminateWorkflowExecutionRequest) GetExternalWorkflowExecution() *v14.WorkflowExecution {
request_response.pb.go
if x != nil {
return x.ExternalWorkflowExecution
}
return nil
}
func (x *TerminateWorkflowExecutionRequest) GetChildWorkflowOnly() bool {
request_response.pb.go
if x != nil {
return x.ChildWorkflowOnly
}
return false
}
}
func (x *RequestCancelWorkflowExecutionRequest) GetExternalWorkflowExecution() *v14.WorkflowExecution {
request_response.pb.go
if x != nil {
return x.ExternalWorkflowExecution
}
return nil
}