@karmaniverous/jeeves-runner 0.3.0 → 0.3.1

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/index.d.ts CHANGED
@@ -102,8 +102,8 @@ type Queue = z.infer<typeof queueSchema>;
102
102
 
103
103
  /** Run status enumeration schema (pending, running, ok, error, timeout, skipped). */
104
104
  declare const runStatusSchema: z.ZodEnum<{
105
- error: "error";
106
105
  pending: "pending";
106
+ error: "error";
107
107
  running: "running";
108
108
  ok: "ok";
109
109
  timeout: "timeout";
@@ -120,8 +120,8 @@ declare const runSchema: z.ZodObject<{
120
120
  id: z.ZodNumber;
121
121
  jobId: z.ZodString;
122
122
  status: z.ZodEnum<{
123
- error: "error";
124
123
  pending: "pending";
124
+ error: "error";
125
125
  running: "running";
126
126
  ok: "ok";
127
127
  timeout: "timeout";
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.3.1",
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",