}
if wtFailedCause != nil {
effects.Cancel(ctx)
Frontier kind: Code frontier
unlabeled · c_7663e6d96202
57 tests · 6718 LOC · 204 files · introduces 0 tests · 27 LOC · 1 file
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/circuitbreaker/TestTSCBWithDynamicSettingsgo.temporal.io/server/common/dynamicconfig/TestDeepCopy_OtherReferenceTypes_Nilgo.temporal.io/server/service/matching/configs/TestQuotasSuite/TestAPIPrioritiesOrderedgo.temporal.io/server/service/matching/configs/TestQuotasSuite/TestAPIToPriorityMappinggo.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.
1 file ranked by introduced lines: 27 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
}
if wtFailedCause != nil {
effects.Cancel(ctx)
}
// Do not schedule a new workflow task if the workflow is paused. Accepting the in-flight
// WT completion is intentional (see HistoryBuilder buffering of WORKFLOW_EXECUTION_PAUSED),
// but scheduling a follow-up WT would call ApplyWorkflowTaskScheduledEvent, which resets
// Status to RUNNING while leaving executionInfo.PauseInfo set — desyncing pause state.
// Mirrors the gate in closeTransactionHandleWorkflowTaskScheduling.
if ms.IsWorkflowExecutionRunning() && !ms.IsWorkflowExecutionStatusPaused() {
if request.GetForceCreateNewWorkflowTask() || // Heartbeat WT is always of Normal type.
wtFailedShouldCreateNewTask ||
}
// TODO (alex-update): All current SDKs always set ReturnNewWorkflowTask to true
// which means that server always bypass task generation if WFT didn't fail.
// ReturnNewWorkflowTask flag needs to be removed.
if newWorkflowTaskType == enumsspb.WORKFLOW_TASK_TYPE_SPECULATIVE && !bypassTaskGeneration {
// If task generation can't be bypassed (i.e. WFT has failed),
// WFT must be created as Normal because speculative WFT by nature skips task generation.
}
// Speculative workflow task will be created after mutable state is persisted.
if newWorkflowTaskType == enumsspb.WORKFLOW_TASK_TYPE_NORMAL {
versioningStamp := request.WorkerVersionStamp
if versioningStamp.GetUseVersioning() {
}
if newMutableState != nil {
newWorkflowExecutionInfo := newMutableState.GetExecutionInfo()
newWorkflowExecutionState := newMutableState.GetExecutionState()
newMutableState,
)
// If completedEvent is not nil (which means that this WT wasn't speculative)
// OR new WT is normal, then mutable state needs to be persisted.
// Otherwise, (both current and new WT are speculative) mutable state is updated in memory only but not persisted.
if completedEvent != nil || newWorkflowTaskType == enumsspb.WORKFLOW_TASK_TYPE_NORMAL {
updateErr = weContext.UpdateWorkflowExecutionAsActive(ctx, handler.shardContext)
}
}
effects.Cancel(ctx)
if persistence.IsConflictErr(updateErr) {