fix: fail expired monitor desktop leases
Frontend CI / Frontend (push) Successful in 2m26s
Backend CI / Backend (push) Failing after 8m42s

This commit is contained in:
2026-06-23 01:03:35 +08:00
parent 8e92737bc2
commit d458dd7477
8 changed files with 514 additions and 21 deletions
@@ -0,0 +1 @@
DROP INDEX CONCURRENTLY IF EXISTS idx_desktop_tasks_monitor_lease_recovery;
@@ -0,0 +1,6 @@
CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_desktop_tasks_monitor_lease_recovery
ON desktop_tasks (lease_expires_at ASC, updated_at ASC, desktop_id ASC)
WHERE kind = 'monitor'
AND status = 'in_progress'
AND monitor_task_id IS NOT NULL
AND lease_expires_at IS NOT NULL;