fix: serialize autonomy job leases
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user