We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef90ddf commit 1c9eabeCopy full SHA for 1c9eabe
1 file changed
src/dstack/_internal/server/services/runs.py
@@ -979,6 +979,12 @@ def _validate_run_spec_and_set_defaults(run_spec: RunSpec):
979
raise ServerClientError(
980
f"Maximum utilization_policy.time_window is {settings.SERVER_METRICS_RUNNING_TTL_SECONDS}s"
981
)
982
+ if (
983
+ run_spec.merged_profile.schedule
984
+ and run_spec.configuration.type == "service"
985
+ and run_spec.configuration.replicas.min == 0
986
+ ):
987
+ raise ServerClientError("Scheduled services with autoscaling to zero are not supported")
988
if run_spec.configuration.priority is None:
989
run_spec.configuration.priority = RUN_PRIORITY_DEFAULT
990
set_resources_defaults(run_spec.configuration.resources)
0 commit comments