chore(repo): 纳入云治理主站运行基线 #27

Merged
zheromiku merged 195 commits from integrate/cloud-main-baseline into main 2026-11-23 14:23:59 +08:00
Showing only changes of commit 80254756f1 - Show all commits
@@ -593,7 +593,8 @@ func activateDS01(ctx context.Context, store *postgresstore.Store, pool *pgxpool
journalSum := sha256.Sum256(rawJournal)
if _, err := pool.Exec(ctx, `
UPDATE library_instance_maintenance SET services=$2::jsonb, owner_scope='internal', level='instance',
state='needs_restore', released_at=NULL, target_fingerprint=$3, updated_at=now()
state='needs_restore', released_at=NULL, target_fingerprint=$3,
acquired_at=LEAST(acquired_at, now()-interval '20 minutes'), updated_at=now()
WHERE instance=$1`, ds01TargetInstance, `["worker-ds01"]`, fingerprint); err != nil {
return err
}