diff options
Diffstat (limited to 'makima/migrations')
| -rw-r--r-- | makima/migrations/20250117000000_add_autonomous_loop.sql | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/makima/migrations/20250117000000_add_autonomous_loop.sql b/makima/migrations/20250117000000_add_autonomous_loop.sql new file mode 100644 index 0000000..2125abf --- /dev/null +++ b/makima/migrations/20250117000000_add_autonomous_loop.sql @@ -0,0 +1,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)'; |
