fix: serialize autonomy job leases

This commit is contained in:
ImBenji
2026-08-04 21:07:42 +01:00
parent 5037e1e192
commit b9ee10a83a
6 changed files with 14 additions and 1 deletions
+1
View File
@@ -71,6 +71,7 @@ function createDecisions(db, strategyVersion = 'autonomy-1') {
async function runCalibrationWorker({ intelligencePath, pollMs = 60000, workerId = `calibration-${os.hostname()}-${process.pid}` } = {}) {
const db = new Database(intelligencePath);
db.pragma('journal_mode = WAL');
db.pragma('busy_timeout = 5000');
initAutonomySchema(db);
while (true) {
try {