transfer_queue_active_task_executor.go ×5

Frontier kind: Code frontier

unlabeled · c_1ef3a14b28de

9 tests · 7735 LOC · 253 files · introduces 0 tests · 14 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges14 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1504 ranges7735 lines · 253 files · Browse complete extent
All tests (intent)
9 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.

1 file ranked by introduced lines: 14 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/transfer_queue_active_task_executor.go 14 introduced LOC · 5 ranges

Open complete file

842 return consts.ErrChildExecutionNotFound
843 }
844 > err = CheckTaskVersion(t.shardContext, t.logger, mutableState.GetNamespaceEntry(), childInfo.Version, task.Version, task) transfer_queue_active_task_executor.go
845 > if err != nil {
846 return err
847 }
848
849 > var targetNamespaceName namespace.Name transfer_queue_active_task_executor.go
850 > var targetNamespaceID namespace.ID
851 > targetNamespaceEntry, err := t.targetNamespaceEntryHelper(
852 > namespace.ID(childInfo.NamespaceId),
853 > namespace.Name(childInfo.Namespace),
854 > )
855 > if err != nil {
856 return err
857 }
858 > if targetNamespaceEntry != nil { transfer_queue_active_task_executor.go
859 targetNamespaceID = targetNamespaceEntry.ID()
860 targetNamespaceName = targetNamespaceEntry.Name()
864 // workflow running or not, child started or not, parent close policy is abandon or not
865 // 8 cases in total
866 > workflowRunning := mutableState.IsWorkflowExecutionRunning() transfer_queue_active_task_executor.go
867 > childStarted := childInfo.StartedEventId != common.EmptyEventID
868 > if !workflowRunning && (!childStarted || childInfo.ParentClosePolicy != enumspb.PARENT_CLOSE_POLICY_ABANDON) {
869 // three cases here:
870 // case 1: workflow not running, child started, parent close policy is not abandon
894 // case 4, 5: workflow started, child started, parent close policy is or is not abandon
895 // case 6: workflow closed, child started, parent close policy is abandon
896 > if childStarted { transfer_queue_active_task_executor.go
897 childExecution := &commonpb.WorkflowExecution{
898 WorkflowId: childInfo.StartedWorkflowId,