Files
geo/server/migrations/20260503110000_add_generation_task_leases.down.sql
T
root c1ef717d17
Deployment Config CI / Deployment Config (push) Successful in 24s
Backend CI / Backend (push) Successful in 14m33s
feat(cache,worker): overhaul cache layer and add generation task lease recovery
- shared/cache: add Options/L1/async/metrics/prefix decorators, multi-key ops, Redis pool tuning, and JSON readthrough metrics
- worker-generate: claim tasks via DB lease + heartbeat, requeue stale queued tasks, expire dead leases with refund/cache invalidation
- tenant: version article cache keys so worker recovery invalidations propagate cleanly
- shared/config: expand Redis (pool/timeouts/TLS) and Generation (lease/recovery) configs with defaults

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 02:02:39 +08:00

10 lines
351 B
SQL

DROP INDEX IF EXISTS idx_generation_tasks_queued_stale;
DROP INDEX IF EXISTS idx_generation_tasks_running_lease;
ALTER TABLE generation_tasks
DROP COLUMN IF EXISTS last_heartbeat_at,
DROP COLUMN IF EXISTS attempt_count,
DROP COLUMN IF EXISTS lease_expires_at,
DROP COLUMN IF EXISTS lease_owner,
DROP COLUMN IF EXISTS lease_token;