util/deploy_multi_instance_serverpod_warning library
Functions
-
computeUsesMoreThanOneInstance(
ComputeInfo compute) → bool - True when compute is configured for more than one running podlet at minimum or maximum scale.
-
serverpodConstraintPrecludesMultiInstanceSafeRelease(
String? serverpodVersionConstraint) → bool - True when the pubspec's Serverpod constraint does not allow any VersionConstants.serverpodMultiPodletSafeMinVersion 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.serverpodMultiPodletSafeMinVersion+ and the capsule is scaled beyond a single podlet, logs a warning. Failures reading compute are ignored (debug log only).