blob: 2125abfe56d2d798ef4f9408c62b8c789970911b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
-- Add autonomous_loop column to contracts table
-- When enabled, tasks for this contract will automatically restart with --continue
-- if they exit without a COMPLETION_GATE indicating ready: true.
ALTER TABLE contracts
ADD COLUMN IF NOT EXISTS autonomous_loop BOOLEAN NOT NULL DEFAULT FALSE;
-- Add autonomous_loop column to tasks table for per-task override
ALTER TABLE tasks
ADD COLUMN IF NOT EXISTS autonomous_loop BOOLEAN NOT NULL DEFAULT FALSE;
COMMENT ON COLUMN contracts.autonomous_loop IS 'Whether tasks for this contract should run in autonomous loop mode';
COMMENT ON COLUMN tasks.autonomous_loop IS 'Whether this task should run in autonomous loop mode (overrides contract setting if set)';
|