mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 12:50:42 +00:00
fix(sqlite): bound WAL sidecar growth
This commit is contained in:
@@ -116,6 +116,9 @@ Example: three independent cron jobs that together form a "morning ops" routine.
|
||||
## Durable state and revision tracking
|
||||
|
||||
Each flow persists its own state and tracks revisions so progress survives gateway restarts. Revision tracking enables conflict detection when multiple sources attempt to advance the same flow concurrently.
|
||||
The flow registry uses SQLite with bounded write-ahead-log maintenance, including
|
||||
periodic and shutdown checkpoints, so long-running gateways do not retain
|
||||
unbounded `registry.sqlite-wal` sidecar files.
|
||||
|
||||
## Cancel behavior
|
||||
|
||||
|
||||
@@ -305,6 +305,8 @@ $OPENCLAW_STATE_DIR/tasks/runs.sqlite
|
||||
```
|
||||
|
||||
The registry loads into memory at gateway start and syncs writes to SQLite for durability across restarts.
|
||||
The Gateway keeps the SQLite write-ahead log bounded by using SQLite's default
|
||||
autocheckpoint threshold plus periodic and shutdown `TRUNCATE` checkpoints.
|
||||
|
||||
### Automatic maintenance
|
||||
|
||||
|
||||
Reference in New Issue
Block a user