@jarenjs/db 0.72.3 → 0.73.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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/dag-job.js +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jarenjs/db",
3
3
  "private": false,
4
- "version": "0.72.3",
4
+ "version": "0.73.0",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
7
7
  "types": "./types/index.d.ts",
@@ -84,9 +84,9 @@
84
84
  "prepack": "npm run build:types"
85
85
  },
86
86
  "dependencies": {
87
- "@jarenjs/core": "^0.72.3",
88
- "@jarenjs/json": "^0.72.3",
89
- "@jarenjs/validate": "^0.72.3"
87
+ "@jarenjs/core": "^0.73.0",
88
+ "@jarenjs/json": "^0.73.0",
89
+ "@jarenjs/validate": "^0.73.0"
90
90
  },
91
91
  "bin": {
92
92
  "jaren-db": "./src/cli.js"
package/src/dag-job.js CHANGED
@@ -199,7 +199,7 @@ export function createDagJobRunner(store, options) {
199
199
  compiled.taskVersions);
200
200
  // the handler's signal reaches every task: a worker winding down
201
201
  // inside its grace period, or a lease this attempt has lost
202
- return await compiled.run(input, { runId: runKey, signal: context.signal });
202
+ return await compiled.run(input, { runId: runKey, signal: context.signal, drainOnAbort: true });
203
203
  }
204
204
  finally {
205
205
  active.delete(runKey);