@karmaniverous/jeeves-runner 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,6 +27,9 @@ function createConnection(dbPath) {
27
27
  // Enable WAL mode for better concurrency
28
28
  db.exec('PRAGMA journal_mode = WAL;');
29
29
  db.exec('PRAGMA foreign_keys = ON;');
30
+ // Wait up to 5s for write lock instead of failing immediately (SQLITE_BUSY).
31
+ // Multiple runner child processes share this DB file concurrently.
32
+ db.exec('PRAGMA busy_timeout = 5000;');
30
33
  return db;
31
34
  }
32
35
  /**
package/dist/mjs/index.js CHANGED
@@ -316,6 +316,9 @@ function createConnection(dbPath) {
316
316
  // Enable WAL mode for better concurrency
317
317
  db.exec('PRAGMA journal_mode = WAL;');
318
318
  db.exec('PRAGMA foreign_keys = ON;');
319
+ // Wait up to 5s for write lock instead of failing immediately (SQLITE_BUSY).
320
+ // Multiple runner child processes share this DB file concurrently.
321
+ db.exec('PRAGMA busy_timeout = 5000;');
319
322
  return db;
320
323
  }
321
324
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karmaniverous/jeeves-runner",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "author": "Jason Williscroft",
5
5
  "description": "Graph-aware job execution engine with SQLite state. Part of the Jeeves platform.",
6
6
  "license": "BSD-3-Clause",
@@ -90,7 +90,8 @@
90
90
  "output": "CHANGELOG.md",
91
91
  "unreleased": true,
92
92
  "commitLimit": false,
93
- "hideCredit": true
93
+ "hideCredit": true,
94
+ "tagPrefix": "service/"
94
95
  },
95
96
  "release-it": {
96
97
  "git": {