Files
Assistant/database/migrations/042_agent_execution_recovery.sql
m 284ea88553
CI / test (push) Failing after 33s
CI / test (pull_request) Failing after 42s
feat(work): make agent execution recovery durable
2026-08-23 13:10:18 +03:00

16 lines
382 B
PL/PgSQL

BEGIN;
SET ROLE work_role;
ALTER TABLE work.agent_dispatch_queue
ADD COLUMN IF NOT EXISTS retry_limit INTEGER NOT NULL DEFAULT 3;
ALTER TABLE work.agent_dispatch_queue
DROP CONSTRAINT IF EXISTS agent_dispatch_queue_retry_limit_check;
ALTER TABLE work.agent_dispatch_queue
ADD CONSTRAINT agent_dispatch_queue_retry_limit_check CHECK (retry_limit > 0);
RESET ROLE;
COMMIT;