workflow.go ×5

Frontier kind: Code frontier

unlabeled · c_41062fa62952

5 tests · 2165 LOC · 80 files · introduces 0 tests · 55 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
11 ranges55 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
375 ranges2165 lines · 80 files · Browse complete extent
All tests (intent)
5 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.

Introduced files, introduced tests, and structurally relevant concept specializationworkflow.go ×1 · 2 introduced LOCworkflow.go ×1workflow.go ×1 · 2 introduced LOCworkflow.go ×1workflow.go ×1 · 3 introduced LOCworkflow.go ×1request_response.pb.go ×2 · 12 introduced LOCrequest_response.pb.go ×…workflow.go ×1 · 2 introduced LOCworkflow.go ×1workflow.go ×1 · 4 introduced LOCworkflow.go ×1workflow.go ×2 · 14 introduced LOCworkflow.go ×2workflow.go ×2 · 9 introduced LOCworkflow.go ×2workflow.go ×1 · 2 introduced LOCworkflow.go ×1dlq.pb.go ×2 · 4 introduced LOCdlq.pb.go ×2message.pb.go ×4 · 27 introduced LOCmessage.pb.go ×4request_response.pb.go ×1 · 5 introduced LOCrequest_response.pb.go ×…request_response.pb.go ×20 · 53 introduced LOCrequest_response.pb.go ×…workflow.go ×2 · 2 introduced LOCworkflow.go ×2workflow.go ×4 · 32 introduced LOCworkflow.go ×4workflow.go ×1 · 1 introduced LOCworkflow.go ×1workflow.go ×3 · 16 introduced LOCworkflow.go ×3workflow.go ×2 · 8 introduced LOCworkflow.go ×2workflow.go ×5 · 38 introduced LOCworkflow.go ×5cluster_metadata.pb.go ×1 · 3 introduced LOCcluster_metadata.pb.go ×…message.pb.go ×5 · 9 introduced LOCmessage.pb.go ×5task_queues.pb.go ×2 · 4 introduced LOCtask_queues.pb.go ×2fx.go ×1 · 3 introduced LOCfx.go ×1message.pb.go ×1 · 3 introduced LOCmessage.pb.go ×1tasks.pb.go ×1 · 3 introduced LOCtasks.pb.go ×1noop_moving_window_average.go ×1 · 2 introduced LOCnoop_moving_window_avera…search_attribute.go ×12 · 121 introduced LOCsearch_attribute.go ×12message.pb.go ×12 · 44 introduced LOCmessage.pb.go ×12category.go ×1 · 3 introduced LOCcategory.go ×1key.go ×1 · 6 introduced LOCkey.go ×1message.pb.go ×1 · 3 introduced LOCmessage.pb.go ×1message.pb.go ×1 · 3 introduced LOCmessage.pb.go ×1message.pb.go ×1 · 3 introduced LOCmessage.pb.go ×1message.pb.go ×2 · 4 introduced LOCmessage.pb.go ×2workflow_mutable_state.pb.go ×1 · 1 introduced LOCworkflow_mutable_state.p…message.pb.go ×2 · 4 introduced LOCmessage.pb.go ×2request_response.pb.go ×1 · 3 introduced LOCrequest_response.pb.go ×…executions.pb.go ×1 · 1 introduced LOCexecutions.pb.go ×1message.pb.go ×2 · 4 introduced LOCmessage.pb.go ×2executions.pb.go ×1 · 3 introduced LOCexecutions.pb.go ×1priority.go ×1 · 3 introduced LOCpriority.go ×1setting_gen.go ×51 · 335 introduced LOCsetting_gen.go ×51workflow.pb.go ×1 · 3 introduced LOCworkflow.pb.go ×1hsm.pb.go ×2 · 4 introduced LOChsm.pb.go ×2message.pb.go ×2 · 4 introduced LOCmessage.pb.go ×2workflow_mutable_state.pb.go ×1 · 3 introduced LOCworkflow_mutable_state.p…grpc_resolver.go ×2 · 7 introduced LOCgrpc_resolver.go ×2message.pb.go ×1 · 1 introduced LOCmessage.pb.go ×1message.pb.go ×1 · 1 introduced LOCmessage.pb.go ×1message.pb.go ×1 · 1 introduced LOCmessage.pb.go ×1message.pb.go ×1 · 3 introduced LOCmessage.pb.go ×1message.pb.go ×1 · 3 introduced LOCmessage.pb.go ×1message.pb.go ×1 · 3 introduced LOCmessage.pb.go ×1predicates.pb.go ×21 · 54 introduced LOCpredicates.pb.go ×21service.pb.go ×2 · 342 introduced LOCservice.pb.go ×2message.pb.go ×1 · 1 introduced LOCmessage.pb.go ×1hsm.pb.go ×1 · 1 introduced LOChsm.pb.go ×1hsm.pb.go ×1 · 3 introduced LOChsm.pb.go ×1message.pb.go ×1 · 3 introduced LOCmessage.pb.go ×1message.pb.go ×2 · 20 introduced LOCmessage.pb.go ×2constants.go ×1 · 6 introduced LOCconstants.go ×1task.pb.go ×1 · 3 introduced LOCtask.pb.go ×1message.pb.go ×2 · 442 introduced LOCmessage.pb.go ×2defs.go ×5 · 91 introduced LOCdefs.go ×5tags.go ×9 · 37 introduced LOCtags.go ×9message.pb.go ×2 · 49 introduced LOCmessage.pb.go ×2cluster.pb.go ×2 · 200 introduced LOCcluster.pb.go ×2caller_info.go ×1 · 3 introduced LOCcaller_info.go ×1wildcard.go ×1 · 2 introduced LOCwildcard.go ×1headers.go ×1 · 2 introduced LOCheaders.go ×1wildcard.go ×4 · 14 introduced LOCwildcard.go ×4headers.go ×3 · 8 introduced LOCheaders.go ×3retrypolicy.go ×3 · 19 introduced LOCretrypolicy.go ×3message.pb.go ×2 · 20 introduced LOCmessage.pb.go ×2payload.go ×1 · 3 introduced LOCpayload.go ×1TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/api/adminservice/v1/request_response.pb.go · 6661 LOCv1/request_response.pb.g…go.temporal.io/server/api/adminservice/v1/service.pb.go · 297 LOCv1/service.pb.gogo.temporal.io/server/api/chasm/v1/message.pb.go · 230 LOCv1/message.pb.gogo.temporal.io/server/api/clock/v1/message.pb.go · 217 LOCv1/message.pb.gogo.temporal.io/server/api/cluster/v1/message.pb.go · 366 LOCv1/message.pb.gogo.temporal.io/server/api/common/v1/api_category.pb.go · 230 LOCv1/api_category.pb.gogo.temporal.io/server/api/common/v1/dlq.pb.go · 319 LOCv1/dlq.pb.gogo.temporal.io/server/api/deployment/v1/message.pb.go · 4650 LOCv1/message.pb.gogo.temporal.io/server/api/enums/v1/cluster.pb.go · 233 LOCv1/cluster.pb.gogo.temporal.io/server/api/enums/v1/common.pb.go · 288 LOCv1/common.pb.gogo.temporal.io/server/api/enums/v1/dlq.pb.go · 211 LOCv1/dlq.pb.gogo.temporal.io/server/api/enums/v1/fairness_state.pb.go · 147 LOCv1/fairness_state.pb.gogo.temporal.io/server/api/enums/v1/nexus.pb.go · 182 LOCv1/nexus.pb.gogo.temporal.io/server/api/enums/v1/predicate.pb.go · 194 LOCv1/predicate.pb.gogo.temporal.io/server/api/enums/v1/replication.pb.go · 338 LOCv1/replication.pb.gogo.temporal.io/server/api/enums/v1/task.pb.go · 480 LOCv1/task.pb.gogo.temporal.io/server/api/enums/v1/workflow.pb.go · 299 LOCv1/workflow.pb.gogo.temporal.io/server/api/enums/v1/workflow_task_type.pb.go · 148 LOCv1/workflow_task_type.pb…go.temporal.io/server/api/errordetails/v1/message.pb.go · 649 LOCv1/message.pb.gogo.temporal.io/server/api/health/v1/message.pb.go · 324 LOCv1/message.pb.gogo.temporal.io/server/api/history/v1/message.pb.go · 522 LOCv1/message.pb.gogo.temporal.io/server/api/historyservice/v1/request_response.pb.go · 12003 LOCv1/request_response.pb.g…go.temporal.io/server/api/historyservice/v1/service.pb.go · 452 LOCv1/service.pb.gogo.temporal.io/server/api/matchingservice/v1/request_response.pb.go · 6878 LOCv1/request_response.pb.g…go.temporal.io/server/api/matchingservice/v1/service.pb.go · 274 LOCv1/service.pb.gogo.temporal.io/server/api/metrics/v1/message.pb.go · 128 LOCv1/message.pb.gogo.temporal.io/server/api/namespace/v1/message.pb.go · 138 LOCv1/message.pb.gogo.temporal.io/server/api/persistence/v1/chasm.pb.go · 1215 LOCv1/chasm.pb.gogo.temporal.io/server/api/persistence/v1/chasm_visibility.pb.go · 170 LOCv1/chasm_visibility.pb.g…go.temporal.io/server/api/persistence/v1/cluster_metadata.pb.go · 313 LOCv1/cluster_metadata.pb.g…go.temporal.io/server/api/persistence/v1/executions.pb.go · 5768 LOCv1/executions.pb.gogo.temporal.io/server/api/persistence/v1/history_tree.pb.go · 298 LOCv1/history_tree.pb.gogo.temporal.io/server/api/persistence/v1/hsm.pb.go · 929 LOCv1/hsm.pb.gogo.temporal.io/server/api/persistence/v1/namespaces.pb.go · 560 LOCv1/namespaces.pb.gogo.temporal.io/server/api/persistence/v1/nexus.pb.go · 509 LOCv1/nexus.pb.gogo.temporal.io/server/api/persistence/v1/predicates.go-helpers.pb.go · 413 LOCv1/predicates.go-helpers…go.temporal.io/server/api/persistence/v1/predicates.pb.go · 864 LOCv1/predicates.pb.gogo.temporal.io/server/api/persistence/v1/queue_metadata.pb.go · 129 LOCv1/queue_metadata.pb.gogo.temporal.io/server/api/persistence/v1/queues.pb.go · 641 LOCv1/queues.pb.gogo.temporal.io/server/api/persistence/v1/task_queues.pb.go · 924 LOCv1/task_queues.pb.gogo.temporal.io/server/api/persistence/v1/tasks.pb.go · 870 LOCv1/tasks.pb.gogo.temporal.io/server/api/persistence/v1/update.pb.go · 455 LOCv1/update.pb.gogo.temporal.io/server/api/persistence/v1/workflow_mutable_state.pb.go · 560 LOCv1/workflow_mutable_stat…go.temporal.io/server/api/replication/v1/message.pb.go · 2481 LOCv1/message.pb.gogo.temporal.io/server/api/taskqueue/v1/message.pb.go · 1363 LOCv1/message.pb.gogo.temporal.io/server/api/token/v1/message.pb.go · 809 LOCv1/message.pb.gogo.temporal.io/server/api/visibilityservice/v1/request_response.pb.go · 426 LOCv1/request_response.pb.g…go.temporal.io/server/api/workflow/v1/message.pb.go · 302 LOCv1/message.pb.gogo.temporal.io/server/chasm/library.go · 60 LOCchasm/library.gogo.temporal.io/server/chasm/registrable_component.go · 233 LOCchasm/registrable_compon…go.temporal.io/server/chasm/search_attribute.go · 525 LOCchasm/search_attribute.g…go.temporal.io/server/common/aggregate/noop_moving_window_average.go · 13 LOCaggregate/noop_moving_wi…go.temporal.io/server/common/backoff/retrypolicy.go · 347 LOCbackoff/retrypolicy.gogo.temporal.io/server/common/build/build.go · 56 LOCbuild/build.gogo.temporal.io/server/common/dynamicconfig/collection.go · 779 LOCdynamicconfig/collection…go.temporal.io/server/common/dynamicconfig/deepcopy.go · 78 LOCdynamicconfig/deepcopy.g…go.temporal.io/server/common/dynamicconfig/gradual_change.go · 196 LOCdynamicconfig/gradual_ch…go.temporal.io/server/common/dynamicconfig/key.go · 21 LOCdynamicconfig/key.gogo.temporal.io/server/common/dynamicconfig/registry.go · 44 LOCdynamicconfig/registry.g…go.temporal.io/server/common/dynamicconfig/setting_gen.go · 1972 LOCdynamicconfig/setting_ge…go.temporal.io/server/common/dynamicconfig/shared_structure.go · 69 LOCdynamicconfig/shared_str…go.temporal.io/server/common/headers/caller_info.go · 165 LOCheaders/caller_info.gogo.temporal.io/server/common/headers/headers.go · 167 LOCheaders/headers.gogo.temporal.io/server/common/log/tag/tags.go · 1039 LOCtag/tags.gogo.temporal.io/server/common/log/tag/zap_tag.go · 242 LOCtag/zap_tag.gogo.temporal.io/server/common/membership/grpc_resolver.go · 169 LOCmembership/grpc_resolver…go.temporal.io/server/common/metrics/defs.go · 76 LOCmetrics/defs.gogo.temporal.io/server/common/metrics/defs_base.go · 30 LOCmetrics/defs_base.gogo.temporal.io/server/common/metrics/noop_impl.go · 58 LOCmetrics/noop_impl.gogo.temporal.io/server/common/metrics/option.go · 21 LOCmetrics/option.gogo.temporal.io/server/common/metrics/registry.go · 75 LOCmetrics/registry.gogo.temporal.io/server/common/payload/payload.go · 127 LOCpayload/payload.gogo.temporal.io/server/common/persistence/noop_health_signal_aggregator.go · 31 LOCpersistence/noop_health_…go.temporal.io/server/common/searchattribute/sadefs/constants.go · 396 LOCsadefs/constants.gogo.temporal.io/server/common/tasks/priority.go · 81 LOCtasks/priority.gogo.temporal.io/server/common/util/wildcard.go · 50 LOCutil/wildcard.gogo.temporal.io/server/service/history/tasks/category.go · 123 LOCtasks/category.gogo.temporal.io/server/service/history/tasks/key.go · 144 LOCtasks/key.gogo.temporal.io/server/service/worker/common/fx.go · 14 LOCcommon/fx.gogo.temporal.io/server/service/worker/dlq/workflow.go · 497 LOCdlq/workflow.goTestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestTSCBWithDynamicSettings · introduced test · go.temporal.io/server/common/circuitbreaker/TestTSCBWithDynamicSettingsTestTSCBWithDynamicSetti…TestDeepCopy_OtherReferenceTypes_Nil · introduced test · go.temporal.io/server/common/dynamicconfig/TestDeepCopy_OtherReferenceTypes_NilTestDeepCopy_OtherRefere…TestMutexMapBaggage · introduced test · go.temporal.io/server/common/metrics/TestBaggageBenchSuite/TestMutexMapBaggageTestMutexMapBaggageTestSyncMapBaggage · introduced test · go.temporal.io/server/common/metrics/TestBaggageBenchSuite/TestSyncMapBaggageTestSyncMapBaggageTestAPIPrioritiesOrdered · introduced test · go.temporal.io/server/service/matching/configs/TestQuotasSuite/TestAPIPrioritiesOrderedTestAPIPrioritiesOrderedTestAPIToPriorityMapping · introduced test · go.temporal.io/server/service/matching/configs/TestQuotasSuite/TestAPIToPriorityMappingTestAPIToPriorityMappingmerge_add_tasks_non-retryable_error · introduced test · go.temporal.io/server/service/worker/dlq/TestModule/merge_add_tasks_non-retryable_errormerge_add_tasks_non-retr…merge_delete_tasks_non-retryable_error · introduced test · go.temporal.io/server/service/worker/dlq/TestModule/merge_delete_tasks_non-retryable_errormerge_delete_tasks_non-r…merge_multiple_pages · introduced test · go.temporal.io/server/service/worker/dlq/TestModule/merge_multiple_pagesmerge_multiple_pagesmerge_no_next_page_token · introduced test · go.temporal.io/server/service/worker/dlq/TestModule/merge_no_next_page_tokenmerge_no_next_page_tokenmerge_replication_tasks_dial_error · introduced test · go.temporal.io/server/service/worker/dlq/TestModule/merge_replication_tasks_dial_errormerge_replication_tasks_…Focused concept · workflow.go ×5 · 55 introduced LOCworkflow.go ×5

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: 55 introduced LOC across 11 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/worker/dlq/workflow.go 28 introduced LOC · 5 ranges

Open complete file

300 }
301
302 > nextPageToken = response.NextPageToken workflow.go
303 >
304 > // 1.b. Filter out tasks from messages beyond the last-desired message.
305 > historyTasks := make([]*commonspb.HistoryTask, 0, len(response.DlqTasks))
306 > maxBatchMessageID := int64(persistence.FirstQueueMessageID)
307 >
308 > for _, task := range response.DlqTasks {
309 > if task.Metadata.MessageId <= params.MaxMessageID {
310 > historyTasks = append(historyTasks, task.Payload)
311 > maxBatchMessageID = max(maxBatchMessageID, task.Metadata.MessageId)
312 > }
313 }
314
315 // 2. Re-enqueue tasks.
316 > err = workflow.ExecuteActivity(ctx, reEnqueueTasksActivityName, params, historyTasks).Get(ctx, nil) workflow.go
317 > if err != nil {
318 return err
319 }
382 params MergeParams,
383 historyTasks []*commonspb.HistoryTask,
384 > ) error { workflow.go
385 > // Group tasks by shard ID.
386 > tasksByShard := make(map[int32][]*adminservice.AddTasksRequest_Task)
387 > for _, task := range historyTasks {
388 > newTask := &adminservice.AddTasksRequest_Task{
389 > CategoryId: int32(params.TaskCategoryID),
390 > Blob: task.Blob,
391 > }
392 > tasksByShard[task.ShardId] = append(tasksByShard[task.ShardId], newTask)
393 > }
394
395 // Connect to the admin service with the source cluster.
396 > taskClient, err := c.taskClientDialer.Dial(ctx, params.SourceCluster) workflow.go
397 > if err != nil {
398 return fmt.Errorf("unable to dial admin service for cluster %q: %w", params.SourceCluster, err)
399 }
485
486 // Dial implements [TaskClientDialer] by calling the [TaskClientDialerFn] with the cluster name.
487 > func (f TaskClientDialerFn) Dial(ctx context.Context, cluster string) (TaskClient, error) { workflow.go
488 > return f(ctx, cluster)
489 > }
490
491 // AddTasks implements [TaskClient] by calling the [AddTasksFn] with the request.
go.temporal.io/server/api/common/v1/dlq.pb.go 15 introduced LOC · 3 ranges

Open complete file

49 mi := &file_temporal_server_api_common_v1_dlq_proto_msgTypes[0]
50 if x != nil {
51 > ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) dlq.pb.go
52 > if ms.LoadMessageInfo() == nil {
53 > ms.StoreMessageInfo(mi)
54 > }
55 > return ms
56 }
57 return mi.MessageOf(x)
101 mi := &file_temporal_server_api_common_v1_dlq_proto_msgTypes[1]
102 if x != nil {
103 > ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) dlq.pb.go
104 > if ms.LoadMessageInfo() == nil {
105 > ms.StoreMessageInfo(mi)
106 > }
107 > return ms
108 }
109 return mi.MessageOf(x)
149 mi := &file_temporal_server_api_common_v1_dlq_proto_msgTypes[2]
150 if x != nil {
151 > ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) dlq.pb.go
152 > if ms.LoadMessageInfo() == nil {
153 > ms.StoreMessageInfo(mi)
154 > }
155 > return ms
156 }
157 return mi.MessageOf(x)
go.temporal.io/server/api/adminservice/v1/request_response.pb.go 12 introduced LOC · 3 ranges

Open complete file

4052 }
4053
4054 > func (x *GetDLQTasksResponse) Reset() { request_response.pb.go
4055 > *x = GetDLQTasksResponse{}
4056 > mi := &file_temporal_server_api_adminservice_v1_request_response_proto_msgTypes[64]
4057 > ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
4058 > ms.StoreMessageInfo(mi)
4059 > }
4060
4061 func (x *GetDLQTasksResponse) String() string {
4065 func (*GetDLQTasksResponse) ProtoMessage() {}
4066
4067 > func (x *GetDLQTasksResponse) ProtoReflect() protoreflect.Message { request_response.pb.go
4068 > mi := &file_temporal_server_api_adminservice_v1_request_response_proto_msgTypes[64]
4069 > if x != nil {
4070 > ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
4071 > if ms.LoadMessageInfo() == nil {
4072 ms.StoreMessageInfo(mi)
4073 }
4074 > return ms request_response.pb.go
4075 }
4076 return mi.MessageOf(x)