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
@@ -33,6 +33,7 @@ async function history(symbol) {
async function resolveAutonomyOutcomes({ intelligencePath, workerId = `outcome-${os.hostname()}-${process.pid}`, pollMs = 60000 } = {}) {
const db = new Database(intelligencePath);
db.pragma('journal_mode = WAL');
db.pragma('busy_timeout = 5000');
initAutonomySchema(db);
const cache = new Map();
while (true) {