case *tasks.UpsertExecutionVisibilityTask:
err = t.processUpsertExecution(ctx, task)
err = t.processCloseExecution(ctx, task)
case *tasks.DeleteExecutionVisibilityTask:
err = t.processDeleteExecution(ctx, task)
Frontier kind: Code frontier
unlabeled · c_2e990b9a9665
12 tests · 8016 LOC · 233 files · introduces 0 tests · 47 LOC · 4 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/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/TestRequestPrioritiesOrderedgo.temporal.io/server/common/future/TestFutureSuite/TestGetWhenContextCanceledgo.temporal.io/server/common/future/TestFutureSuite/TestSetGetReady_Sequentialgo.temporal.io/server/common/future/TestFutureSuite/TestSetReadyGet_Parallelgo.temporal.io/server/common/future/TestFutureSuite/TestSetReadyGet_SequentialEvery 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.
4 files ranked by introduced lines: 47 introduced LOC across 17 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
case *tasks.UpsertExecutionVisibilityTask:
err = t.processUpsertExecution(ctx, task)
err = t.processCloseExecution(ctx, task)
case *tasks.DeleteExecutionVisibilityTask:
err = t.processDeleteExecution(ctx, task)
parentCtx context.Context,
task *tasks.CloseExecutionVisibilityTask,
ctx, cancel := context.WithTimeout(parentCtx, taskTimeout)
defer cancel()
namespaceEntry, err := t.shardContext.GetNamespaceRegistry().
GetNamespaceByID(namespace.ID(task.GetNamespaceID()))
if err != nil {
return err
}
weContext, release, err := getWorkflowExecutionContextForTask(ctx, t.shardContext, t.cache, task)
visibility_queue_task_executor.go
if err != nil {
return err
}
mutableState, err := weContext.LoadMutableState(ctx, t.shardContext)
visibility_queue_task_executor.go
if err != nil {
return err
}
if mutableState == nil || mutableState.IsWorkflowExecutionRunning() {
visibility_queue_task_executor.go
return nil
}
if err != nil {
return err
}
err = CheckTaskVersion(t.shardContext, t.logger, mutableState.GetNamespaceEntry(), closeVersion, task.Version, task)
visibility_queue_task_executor.go
if err != nil {
return err
}
task,
namespaceEntry,
mutableState,
mutableState.GetExecutionInfo().Memo,
mutableState.GetExecutionInfo().SearchAttributes,
)
closedRequest, err := t.getClosedVisibilityRequest(ctx, requestBase, mutableState, namespaceEntry)
if err != nil {
return err
}
// release the context lock since we no longer need mutable state and
// the rest of logic is making RPC call, which takes time.
err = t.visibilityMgr.RecordWorkflowExecutionClosed(ctx, closedRequest)
if err != nil {
return err
}
// turned off. Once created in CHASM, callbacks should always be processed as long as CHASM is enabled.
if ms.ChasmEnabled() {
return err
}
// processCloseCallbacksChasm triggers "WorkflowClosed" callbacks using the CHASM implementation.
wf, _, err := ms.ChasmWorkflowComponentReadOnly(context.Background())
if err != nil {
return err
}
// Return early if there are no chasm callbacks to process.
return nil
}
// If there are callbacks to process, create a writable workflow component.
func (x *ExecutionStats) GetHistorySize() int64 {
if x != nil {
}
return 0
}
func (x *ExecutionStats) GetExternalPayloadSize() int64 {
if x != nil {
}
return 0
}
func (x *ExecutionStats) GetExternalPayloadCount() int64 {
if x != nil {
}
return 0
}
case *tasks.UpsertExecutionVisibilityTask:
return metrics.TaskTypeVisibilityTaskUpsertExecution
return metrics.TaskTypeVisibilityTaskCloseExecution
case *tasks.DeleteExecutionVisibilityTask:
return metrics.TaskTypeVisibilityTaskDeleteExecution