visibility_queue_task_executor.go ×6

Frontier kind: Code frontier

unlabeled · c_3981a3565a2d

3 tests · 6644 LOC · 241 files · introduces 0 tests · 44 LOC · 7 files

Introduces — evidence that enters the hierarchy at this concept

Code
15 ranges44 lines · 7 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1296 ranges6644 lines · 241 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.

7 files ranked by introduced lines: 44 introduced LOC across 15 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/visibility_queue_task_executor.go 15 introduced LOC · 6 ranges

Open complete file

113 case *tasks.DeleteExecutionVisibilityTask:
114 err = t.processDeleteExecution(ctx, task)
115 > case *tasks.ChasmTask: visibility_queue_task_executor.go
116 > task.Attempt = executable.Attempt()
117 > err = t.processChasmTask(ctx, task)
118 default:
119 err = errUnknownVisibilityTask
355 ctx context.Context,
356 task *tasks.ChasmTask,
357 > ) (retError error) { visibility_queue_task_executor.go
358 > ctx, cancel := context.WithTimeout(ctx, taskTimeout)
359 > defer cancel()
360 >
361 > weContext, release, err := getWorkflowExecutionContextForTask(ctx, t.shardContext, t.cache, task)
362 > if err != nil {
363 return err
364 }
365 > defer func() { release(retError) }() visibility_queue_task_executor.go
366
367 > mutableState, err := weContext.LoadMutableState(ctx, t.shardContext) visibility_queue_task_executor.go
368 > if err != nil {
369 return err
370 }
371 > if mutableState == nil { visibility_queue_task_executor.go
372 return errNoChasmMutableState
373 }
374
375 > isTaskInTree, isValidByComponent, err := validateChasmSideEffectTask(ctx, mutableState, task) visibility_queue_task_executor.go
376 > if err != nil || !isTaskInTree || !isValidByComponent {
377 return err
378 }
go.temporal.io/server/api/persistence/v1/chasm_visibility.pb.go 12 introduced LOC · 2 ranges

Open complete file

30 }
31
32 > func (x *ChasmVisibilityData) Reset() { chasm_visibility.pb.go
33 > *x = ChasmVisibilityData{}
34 > mi := &file_temporal_server_api_persistence_v1_chasm_visibility_proto_msgTypes[0]
35 > ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
36 > ms.StoreMessageInfo(mi)
37 > }
38
39 func (x *ChasmVisibilityData) String() string {
74 }
75
76 > func (x *ChasmVisibilityTaskData) Reset() { chasm_visibility.pb.go
77 > *x = ChasmVisibilityTaskData{}
78 > mi := &file_temporal_server_api_persistence_v1_chasm_visibility_proto_msgTypes[1]
79 > ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
80 > ms.StoreMessageInfo(mi)
81 > }
82
83 func (x *ChasmVisibilityTaskData) String() string {
go.temporal.io/server/api/persistence/v1/chasm_visibility.go-helpers.pb.go 6 introduced LOC · 2 ranges

Open complete file

7
8 // Marshal an object of type ChasmVisibilityData to the protobuf v3 wire format
9 > func (val *ChasmVisibilityData) Marshal() ([]byte, error) { chasm_visibility.go-helpers.pb.go
10 > return proto.Marshal(val)
11 > }
12
13 // Unmarshal an object of type ChasmVisibilityData from the protobuf v3 wire format
44
45 // Marshal an object of type ChasmVisibilityTaskData to the protobuf v3 wire format
46 > func (val *ChasmVisibilityTaskData) Marshal() ([]byte, error) { chasm_visibility.go-helpers.pb.go
47 > return proto.Marshal(val)
48 > }
49
50 // Unmarshal an object of type ChasmVisibilityTaskData from the protobuf v3 wire format
go.temporal.io/server/chasm/registry.go 4 introduced LOC · 2 ranges

Open complete file

172 // This method should only be used by CHASM framework internal code,
173 // NOT CHASM library developers.
174 > func (r *Registry) TaskIDFor(taskInstance any) (uint32, bool) { registry.go
175 > rt, ok := r.taskFor(taskInstance)
176 > if !ok {
177 return 0, false
178 }
179 > return rt.taskTypeID, true registry.go
180 }
181
go.temporal.io/server/api/persistence/v1/executions.go-helpers.pb.go 3 introduced LOC · 1 range

Open complete file

636
637 // Marshal an object of type ActivityInfo to the protobuf v3 wire format
638 > func (val *ActivityInfo) Marshal() ([]byte, error) { executions.go-helpers.pb.go
639 > return proto.Marshal(val)
640 > }
641
642 // Unmarshal an object of type ActivityInfo from the protobuf v3 wire format
go.temporal.io/server/service/history/queues/executable.go 2 introduced LOC · 1 range

Open complete file

914 if t, ok := task.(tasks.HasArchetypeID); ok {
915 if name, ok := chasmRegistry.ArchetypeDisplayName(t.GetArchetypeID()); ok {
916 > return metrics.ArchetypeTag(name) executable.go
917 > }
918 }
919 return metrics.ArchetypeTag(chasm.WorkflowComponentName)
go.temporal.io/server/service/history/queues/metrics.go 2 introduced LOC · 1 range

Open complete file

166 case *tasks.DeleteExecutionVisibilityTask:
167 return metrics.TaskTypeVisibilityTaskDeleteExecution
168 > case *tasks.ChasmTask: metrics.go
169 > return metrics.TaskTypeVisibilityTaskUpsertChasmExecution
170 default:
171 return task.GetType().String()