err := workflow.ExecuteActivity(activityCtx, d.a.SyncDeploymentVersionUserData, syncReq).Get(ctx, &syncRes)
if err != nil {
}
// wait for propagation
Frontier kind: Joint frontier
unlabeled · c_0151b03233fa
1 test · 3254 LOC · 140 files · introduces 1 test · 50 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/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/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/TestAPIToPriorityMappingEvery collected test enters the hierarchy at exactly one concept.
1 test introduced at this concept.
Every collected source range enters the hierarchy at exactly one concept.
3 files ranked by introduced lines: 50 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
err := workflow.ExecuteActivity(activityCtx, d.a.SyncDeploymentVersionUserData, syncReq).Get(ctx, &syncRes)
if err != nil {
}
// wait for propagation
if d.deleteVersion {
if workflow.GetVersion(ctx, "awaitSerialDelete", workflow.DefaultVersion, 1) == workflow.DefaultVersion {
version_workflow.go
// In case it was marked as deleted we make it undeleted
d.deleteVersion = false
d.GetVersionState().RevisionNumber++
}
// In case this version just got deleted, we wait until it finished propagating delete to all task queues before reviving it.
// This is because the deleted flag propagation is not protected by revision number and if done parallel to other propagations, it can cause a race condition.
err = workflow.Await(ctx, func() bool {
return d.asyncPropagationsInProgress == 0
})
if err != nil {
return err
}
}
}
}
// Resetting state to get rid of the info from the past life.
state := makeNewVersionState(d.VersionState.Version.DeploymentName,
d.VersionState.Version.BuildId,
workflow.Now(ctx),
"",
enumspb.WORKER_DEPLOYMENT_VERSION_STATUS_INACTIVE,
nil,
d.VersionState.SyncBatchSize)
d.VersionState = state
d.deleteVersion = false
}
func (d *VersionWorkflowRunner) syncRegisteredTaskQueueOld(ctx workflow.Context, args *deploymentspb.RegisterWorkerInVersionArgs) error {
if err != nil {
// Return empty map on error
return map[string]int64(nil)
}
return syncRes.TaskQueueMaxVersions
computeConfig *computepb.ComputeConfigSummary,
syncBatchSize int32,
return &deploymentspb.VersionLocalState{
Version: &deploymentspb.WorkerDeploymentVersion{
DeploymentName: deploymentName,
BuildId: buildID,
},
CreateTime: timestamppb.New(createTime),
Status: initialStatus,
RoutingUpdateTime: nil,
CurrentSinceTime: nil, // not current
RampingSinceTime: nil, // not ramping
RampPercentage: 0, // not ramping
DrainageInfo: &deploymentpb.VersionDrainageInfo{}, // not draining or drained
Metadata: nil,
SyncBatchSize: syncBatchSize,
LastModifierIdentity: identity,
ComputeConfig: computeConfig,
}
}
}
if x != nil {
return x.ForgetVersion
}
return false
}