CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_desktop_tasks_publish_lease_recovery
    ON desktop_tasks (lease_expires_at ASC, updated_at ASC, desktop_id ASC)
    WHERE kind = 'publish'
      AND status = 'in_progress'
      AND lease_expires_at IS NOT NULL;
