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