transfer_queue_active_task_executor.go ×3

Frontier kind: Code frontier

unlabeled · c_c4f571b39671

3 tests · 9936 LOC · 266 files · introduces 0 tests · 41 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges41 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
2139 ranges9936 lines · 266 files · Browse complete extent
All tests (intent)
3 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.

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

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

Open complete file

709 }
710
711 > targetNamespaceID = targetNamespaceEntry.ID() transfer_queue_active_task_executor.go
712 > targetNamespaceName = targetNamespaceEntry.Name()
713 >
714 > // handle workflow signal itself
715 > if task.NamespaceID == targetNamespaceID.String() && task.WorkflowID == attributes.GetWorkflowExecution().GetWorkflowId() {
716 // it does not matter if the run ID is a mismatch
717 metrics.SignalExternalWorkflowExecutionFailures.With(t.metricHandler).Record(
733 }
734
735 > if err = t.signalExternalExecution( transfer_queue_active_task_executor.go
736 > ctx,
737 > task,
738 > targetNamespaceName,
739 > targetNamespaceID,
740 > signalInfo,
741 > attributes,
742 > ); err != nil {
743 t.logger.Debug("Failed to signal external workflow execution", tag.Error(err))
744
1647 signalInfo *persistencespb.SignalInfo,
1648 attributes *historypb.SignalExternalWorkflowExecutionInitiatedEventAttributes,
1650 > request := &historyservice.SignalWorkflowExecutionRequest{
1651 > NamespaceId: targetNamespaceID.String(),
1652 > SignalRequest: &workflowservice.SignalWorkflowExecutionRequest{
1653 > Namespace: targetNamespace.String(),
1654 > WorkflowExecution: attributes.GetWorkflowExecution(),
1655 > Identity: consts.IdentityHistoryService,
1656 > SignalName: attributes.SignalName,
1657 > Input: attributes.Input,
1658 > // Use same request ID to deduplicate SignalWorkflowExecution calls
1659 > RequestId: signalInfo.GetRequestId(),
1660 > Control: attributes.Control,
1661 > Header: attributes.Header,
1662 > },
1663 > ExternalWorkflowExecution: &commonpb.WorkflowExecution{
1664 > WorkflowId: task.WorkflowID,
1665 > RunId: task.RunID,
1666 > },
1667 > ChildWorkflowOnly: attributes.GetChildWorkflowOnly(),
1668 > }
1669 >
1670 > _, err := t.historyRawClient.SignalWorkflowExecution(ctx, request)
1671 > return err
1672 > }
1673
1674 func (t *transferQueueActiveTaskExecutor) startWorkflow(
go.temporal.io/server/api/persistence/v1/executions.pb.go 4 introduced LOC · 1 range

Open complete file

3651 }
3652
3653 > func (x *SignalInfo) GetRequestId() string { executions.pb.go
3654 > if x != nil {
3655 > return x.RequestId
3656 > }
3657 return ""
3658 }