Label autoscaling settings Off and On
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user