util/deploy_multi_instance_serverpod_warning library
Functions
-
computeUsesMoreThanOneInstance(
ComputeInfo compute) → bool - True when compute is configured for more than one running instance at minimum or maximum scale.
-
serverpodConstraintPrecludesMultiInstanceSafeRelease(
String? serverpodVersionConstraint) → bool - True when the pubspec's Serverpod constraint does not allow any VersionConstants.serverpodMultiInstanceSafeMinVersion or newer release.
-
warnIfLegacyServerpodWithMultipleInstances(
{required Client cloudApiClient, required String projectId, required CommandLogger logger, required String? serverpodVersionConstraint}) → Future< void> - When the project cannot resolve to Serverpod VersionConstants.serverpodMultiInstanceSafeMinVersion+ and the capsule is scaled beyond a single instance, logs a warning. Failures reading compute are ignored (debug log only).