Label autoscaling settings Off and On

This commit is contained in:
2026-10-07 15:52:48 -04:00
parent a7a600b687
commit 13f818963b
5 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ export function ensureAutoscalingSchema(handle: Database.Database): void {
WHERE claimed_at IS NULL AND revoked_at IS NULL AND policy_id IN
(SELECT id FROM autoscaling_policies WHERE mode IN ('dry-run','create-only'))`).run(Date.now());
handle.prepare(`UPDATE autoscaling_policies SET mode='off', settings=json_set(settings,'$.mode','off'),
revision=revision+1, paused_reason='This autoscaling mode was removed. Review and enable Create and destroy to resume.',
revision=revision+1, paused_reason='This autoscaling mode was removed. Review and turn autoscaling On to resume.',
owns_map=CASE WHEN EXISTS (SELECT 1 FROM autoscaling_decisions WHERE policy_id=autoscaling_policies.id AND resolved=0)
THEN owns_map ELSE 0 END, updated_at=?
WHERE mode IN ('dry-run','create-only')`).run(new Date().toISOString());