}
// else, either workflow is not running or restart requested
ctx,
shard,
namespaceEntry,
currentWorkflowLease,
startRequest,
signalWithStartRequest,
)
}
Frontier kind: Code frontier
unlabeled · c_aebb21b0dce9
5 tests · 8169 LOC · 250 files · introduces 0 tests · 91 LOC · 3 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/service/history/historybuilder/TestHistoryBuilder_AddDifferentEvents/When_WorkflowTaskScheduledEvent_added_it_will_be_placed_in_memLatestBatchgo.temporal.io/server/service/history/historybuilder/TestHistoryBuilder_AddDifferentEvents_AssignmentEventId/Adding_batched_event_will_set_event_id_to_next_event_id_allocated_by_HistoryBuildergo.temporal.io/server/service/history/historybuilder/TestHistoryBuilder_AddDifferentEvents_WorkflowFinishEvents/When_WorkflowTaskScheduledEvent_added_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.
3 files ranked by introduced lines: 91 introduced LOC across 16 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
}
// else, either workflow is not running or restart requested
ctx,
shard,
namespaceEntry,
currentWorkflowLease,
startRequest,
signalWithStartRequest,
)
}
startRequest *historyservice.StartWorkflowExecutionRequest,
signalWithStartRequest *workflowservice.SignalWithStartWorkflowExecutionRequest,
workflowID := signalWithStartRequest.GetWorkflowId()
runID := uuid.New().String()
// TODO(bergundy): Support eager workflow task
newMutableState, err := api.NewWorkflowWithSignal(
shard,
namespaceEntry,
workflowID,
runID,
startRequest,
signalWithStartRequest,
)
if err != nil {
return startOutcome{}, err
}
newWorkflowLease, err := api.NewWorkflowLeaseAndContext(nil, shard, newMutableState)
signal_with_start_workflow.go
if err != nil {
return startOutcome{}, err
}
ctx,
shard,
newMutableState,
signalWithStartRequest.GetSignalInput().Size(),
signalWithStartRequest.GetHeader().Size(),
"SignalWithStartWorkflowExecution",
); err != nil {
return startOutcome{}, err
}
shard,
currentWorkflowLease,
namespaceEntry,
runID,
signalWithStartRequest.GetWorkflowIdReusePolicy(),
signalWithStartRequest.GetWorkflowIdConflictPolicy(),
)
if err != nil {
return startOutcome{}, err
}
if err = startAndSignalWithCurrentWorkflow(
ctx,
return startOutcome{runID: runID, firstExecutionRunID: runID, started: true}, nil
}
if err != nil {
return startOutcome{}, err
}
ctx,
shard,
vrid,
newWorkflowLease,
currentWorkflowLease,
signalWithStartRequest.RequestId,
)
}
workflowIDReusePolicy enumspb.WorkflowIdReusePolicy,
workflowIDConflictPolicy enumspb.WorkflowIdConflictPolicy,
if currentWorkflowLease == nil {
return nil, nil
}
}
func createVersionedRunID(currentWorkflowLease api.WorkflowLease) (*api.VersionedRunID, error) {
signal_with_start_workflow.go
if currentWorkflowLease == nil {
return nil, nil
}
currentWorkflowLease api.WorkflowLease,
requestID string,
newWorkflow, newWorkflowEventsSeq, err := newWorkflowLease.GetMutableState().CloseTransactionAsSnapshot(
ctx,
historyi.TransactionPolicyActive,
)
if err != nil {
return startOutcome{}, err
}
return startOutcome{}, serviceerror.NewInternal("unable to create 1st event batch")
}
prevRunID := ""
prevLastWriteVersion := int64(0)
if vrid != nil {
createMode = persistence.CreateWorkflowModeUpdateCurrent
prevRunID = vrid.RunID
}
}
ctx,
shardContext,
createMode,
prevRunID,
prevLastWriteVersion,
newWorkflowLease.GetMutableState(),
newWorkflow,
newWorkflowEventsSeq,
historyi.TransactionPolicyActive,
)
switch failedErr := err.(type) {
case nil:
// Brand-new run: head of the chain == this run id.
if signalWithStartRequest != nil {
newMutableState.AddSignalRequested(signalWithStartRequest.GetRequestId())
}
if _, err := newMutableState.AddWorkflowExecutionSignaled(
signalWithStartRequest.GetSignalName(),
signalWithStartRequest.GetSignalInput(),
signalWithStartRequest.GetIdentity(),
signalWithStartRequest.GetHeader(),
signalWithStartRequest.GetRequestId(),
signalWithStartRequest.GetLinks(),
); err != nil {
return nil, err
}
for requestID, eventID := range requestIDToEventID {
if requestIDInfo, ok := ms.executionState.RequestIds[requestID]; ok {
}
if wf != nil {
// UpdateIncomingSignalEvent is a no-op for non-signal request IDs as they won't exist in the map.