velocious 1.0.525 → 1.0.527
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.
- package/README.md +12 -1
- package/build/background-jobs/main.js +48 -5
- package/build/background-jobs/store.js +43 -8
- package/build/background-jobs/types.js +1 -0
- package/build/src/background-jobs/main.d.ts +12 -0
- package/build/src/background-jobs/main.d.ts.map +1 -1
- package/build/src/background-jobs/main.js +48 -6
- package/build/src/background-jobs/store.d.ts +9 -2
- package/build/src/background-jobs/store.d.ts.map +1 -1
- package/build/src/background-jobs/store.js +45 -10
- package/build/src/background-jobs/types.d.ts +5 -0
- package/build/src/background-jobs/types.d.ts.map +1 -1
- package/build/src/background-jobs/types.js +2 -1
- package/package.json +1 -1
- package/src/background-jobs/main.js +48 -5
- package/src/background-jobs/store.js +43 -8
- package/src/background-jobs/types.js +1 -0
package/README.md
CHANGED
|
@@ -1940,7 +1940,7 @@ Velocious includes a simple background jobs system inspired by Sidekiq.
|
|
|
1940
1940
|
|
|
1941
1941
|
Jobs can opt into cross-worker durable concurrency limits by pairing a non-empty `concurrencyKey` with a positive-integer `maxConcurrency` in their background-job options. The first cap registered for a key is stable; conflicting caps are rejected. See [durable concurrency limits](docs/background-jobs.md#durable-concurrency-limits).
|
|
1942
1942
|
|
|
1943
|
-
Production apps can listen for `background-job-failed` or its `all-error` mirror to report accepted failed attempts, including retry and terminal
|
|
1943
|
+
Production apps can listen for `background-job-failed` (or its `all-error` mirror) to report accepted failed attempts, including retry and terminal-state metadata, and for `background-job-orphaned` to react to a specific job the main process reclaimed after its worker died mid-run — e.g. enqueue a targeted recovery for the work it left behind, instead of only polling for the aftermath. See [docs/background-jobs.md](docs/background-jobs.md#failure-events).
|
|
1944
1944
|
|
|
1945
1945
|
## Setup
|
|
1946
1946
|
|
|
@@ -2052,6 +2052,17 @@ await MyJob.performLaterWithOptions({
|
|
|
2052
2052
|
})
|
|
2053
2053
|
```
|
|
2054
2054
|
|
|
2055
|
+
Schedule a one-off job for a specific epoch timestamp in milliseconds:
|
|
2056
|
+
|
|
2057
|
+
```js
|
|
2058
|
+
await MyJob.performLaterWithOptions({
|
|
2059
|
+
args: ["a", "b"],
|
|
2060
|
+
options: {scheduledAtMs: Date.now() + 2 * 60 * 60 * 1000}
|
|
2061
|
+
})
|
|
2062
|
+
```
|
|
2063
|
+
|
|
2064
|
+
Until `scheduledAtMs` is reached, the job remains queued but is not eligible for dispatch. The event-driven dispatcher arms its timer for the earliest future job and wakes at that timestamp. Omitting `scheduledAtMs` keeps the immediate-enqueue behavior.
|
|
2065
|
+
|
|
2055
2066
|
The older `options: {forked: false}` form is still accepted as an alias for inline execution, and `options: {forked: true}` maps to forked execution. To use the previous spawned CLI runner behavior explicitly, pass `options: {executionMode: "spawned"}`.
|
|
2056
2067
|
|
|
2057
2068
|
Inline jobs share the worker process and run concurrently up to `maxConcurrentInlineJobs`, so a single slow inline job no longer blocks the queue. A single worker can also override the configured cap explicitly:
|
|
@@ -784,6 +784,37 @@ export default class BackgroundJobsMain {
|
|
|
784
784
|
errorEvents.emit("all-error", {...payload, errorType: "background-job-failed"})
|
|
785
785
|
}
|
|
786
786
|
|
|
787
|
+
/**
|
|
788
|
+
* Emits `background-job-orphaned` (mirrored to `all-error`) for a job the time-based orphan sweep
|
|
789
|
+
* reclaimed after its worker died mid-run. Unlike `background-job-failed`, which fires on a
|
|
790
|
+
* worker's failure report, this fires from the main process's sweep, so applications can react to
|
|
791
|
+
* a dead worker's specific job — recover the work it left behind — without polling. `willRetry`
|
|
792
|
+
* reflects whether the reclaim returned the job to the queue for another attempt.
|
|
793
|
+
* @param {{job: import("./types.js").BackgroundJobRow}} args - The orphaned job.
|
|
794
|
+
* @returns {void}
|
|
795
|
+
*/
|
|
796
|
+
_emitBackgroundJobOrphaned({job}) {
|
|
797
|
+
const normalizedError = this._normalizeFailureError(job.lastError ?? "Job orphaned after timeout")
|
|
798
|
+
const payload = {
|
|
799
|
+
context: {
|
|
800
|
+
attempts: job.attempts,
|
|
801
|
+
jobArgs: job.args,
|
|
802
|
+
jobId: job.id,
|
|
803
|
+
jobName: job.jobName,
|
|
804
|
+
maxRetries: job.maxRetries,
|
|
805
|
+
stage: "background-job-orphaned",
|
|
806
|
+
status: job.status,
|
|
807
|
+
terminal: job.status === "failed" || job.status === "orphaned",
|
|
808
|
+
willRetry: job.status === "queued"
|
|
809
|
+
},
|
|
810
|
+
error: normalizedError
|
|
811
|
+
}
|
|
812
|
+
const errorEvents = this.configuration.getErrorEvents()
|
|
813
|
+
|
|
814
|
+
errorEvents.emit("background-job-orphaned", payload)
|
|
815
|
+
errorEvents.emit("all-error", {...payload, errorType: "background-job-orphaned"})
|
|
816
|
+
}
|
|
817
|
+
|
|
787
818
|
/**
|
|
788
819
|
* Runs normalize failure error.
|
|
789
820
|
* @param {?} error - Reported failure value.
|
|
@@ -1170,14 +1201,26 @@ export default class BackgroundJobsMain {
|
|
|
1170
1201
|
|
|
1171
1202
|
async _sweepOrphans() {
|
|
1172
1203
|
try {
|
|
1173
|
-
const
|
|
1204
|
+
const orphanedJobs = await this.store.markOrphanedJobs()
|
|
1174
1205
|
|
|
1175
|
-
if (
|
|
1176
|
-
this.logger.warn(() => ["Marked orphaned background jobs",
|
|
1177
|
-
// Reclaimed orphans become `queued` again — wake the dispatcher
|
|
1178
|
-
//
|
|
1206
|
+
if (orphanedJobs.length > 0) {
|
|
1207
|
+
this.logger.warn(() => ["Marked orphaned background jobs", orphanedJobs.length])
|
|
1208
|
+
// Reclaimed orphans become `queued` again — wake the dispatcher first so
|
|
1209
|
+
// an application event handler that throws below cannot strand them
|
|
1210
|
+
// queued until the next external enqueue/reconnect.
|
|
1179
1211
|
this._notifyEnqueued()
|
|
1180
1212
|
await this._drain()
|
|
1213
|
+
// Emit an event per orphaned job so applications can react to a dead
|
|
1214
|
+
// worker's specific job (e.g. targeted recovery) instead of only polling
|
|
1215
|
+
// for its aftermath. Isolate each so one throwing handler can't suppress
|
|
1216
|
+
// the events for the rest.
|
|
1217
|
+
for (const job of orphanedJobs) {
|
|
1218
|
+
try {
|
|
1219
|
+
this._emitBackgroundJobOrphaned({job})
|
|
1220
|
+
} catch (error) {
|
|
1221
|
+
this.logger.error(() => ["A background-job-orphaned event handler threw:", error])
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1181
1224
|
}
|
|
1182
1225
|
} catch (error) {
|
|
1183
1226
|
this.logger.error(() => ["Failed to mark orphaned jobs:", error])
|
|
@@ -99,6 +99,7 @@ export default class BackgroundJobsStore {
|
|
|
99
99
|
const now = Date.now()
|
|
100
100
|
const executionMode = this._normalizeExecutionMode(options)
|
|
101
101
|
const maxRetries = this._normalizeMaxRetries(options?.maxRetries)
|
|
102
|
+
const scheduledAtMs = this._normalizeScheduledAtMs(options?.scheduledAtMs, now)
|
|
102
103
|
const argsJson = JSON.stringify(args || [])
|
|
103
104
|
const queue = this._normalizeQueue(options)
|
|
104
105
|
const concurrency = this._resolveConcurrency(options, queue)
|
|
@@ -141,7 +142,7 @@ export default class BackgroundJobsStore {
|
|
|
141
142
|
max_retries: maxRetries,
|
|
142
143
|
attempts: 0,
|
|
143
144
|
status: "queued",
|
|
144
|
-
scheduled_at_ms:
|
|
145
|
+
scheduled_at_ms: scheduledAtMs,
|
|
145
146
|
created_at_ms: now,
|
|
146
147
|
concurrency_key: concurrency?.concurrencyKey || null,
|
|
147
148
|
max_concurrency: concurrency?.maxConcurrency || null
|
|
@@ -547,7 +548,7 @@ export default class BackgroundJobsStore {
|
|
|
547
548
|
* Runs mark orphaned jobs.
|
|
548
549
|
* @param {object} [args] - Options.
|
|
549
550
|
* @param {number} [args.orphanedAfterMs] - Mark jobs orphaned after this duration.
|
|
550
|
-
* @returns {Promise<
|
|
551
|
+
* @returns {Promise<import("./types.js").BackgroundJobRow[]>} - The jobs this sweep marked orphaned.
|
|
551
552
|
*/
|
|
552
553
|
async markOrphanedJobs({orphanedAfterMs = ORPHANED_AFTER_MS} = {}) {
|
|
553
554
|
await this.ensureReady()
|
|
@@ -562,7 +563,8 @@ export default class BackgroundJobsStore {
|
|
|
562
563
|
|
|
563
564
|
const rows = await query.results()
|
|
564
565
|
|
|
565
|
-
|
|
566
|
+
/** @type {import("./types.js").BackgroundJobRow[]} */
|
|
567
|
+
const orphanedJobs = []
|
|
566
568
|
|
|
567
569
|
for (const row of rows) {
|
|
568
570
|
const job = this._normalizeJobRow(row)
|
|
@@ -588,10 +590,10 @@ export default class BackgroundJobsStore {
|
|
|
588
590
|
conditions: {id: job.id, status: "handed_off", handed_off_at_ms: job.handedOffAtMs}
|
|
589
591
|
})
|
|
590
592
|
|
|
591
|
-
if (orphanedJob)
|
|
593
|
+
if (orphanedJob) orphanedJobs.push(orphanedJob)
|
|
592
594
|
}
|
|
593
595
|
|
|
594
|
-
return
|
|
596
|
+
return orphanedJobs
|
|
595
597
|
})
|
|
596
598
|
}
|
|
597
599
|
|
|
@@ -725,6 +727,19 @@ export default class BackgroundJobsStore {
|
|
|
725
727
|
return DEFAULT_MAX_RETRIES
|
|
726
728
|
}
|
|
727
729
|
|
|
730
|
+
/**
|
|
731
|
+
* Runs normalize scheduled at ms.
|
|
732
|
+
* @param {number | undefined} scheduledAtMs - Requested dispatch timestamp.
|
|
733
|
+
* @param {number} defaultScheduledAtMs - Default dispatch timestamp.
|
|
734
|
+
* @returns {number} - Dispatch timestamp.
|
|
735
|
+
*/
|
|
736
|
+
_normalizeScheduledAtMs(scheduledAtMs, defaultScheduledAtMs) {
|
|
737
|
+
if (scheduledAtMs === undefined) return defaultScheduledAtMs
|
|
738
|
+
if (Number.isSafeInteger(scheduledAtMs) && scheduledAtMs >= 0) return scheduledAtMs
|
|
739
|
+
|
|
740
|
+
throw new Error("background job scheduledAtMs must be a non-negative safe integer")
|
|
741
|
+
}
|
|
742
|
+
|
|
728
743
|
async _ensureSchema() {
|
|
729
744
|
await this._withDb(async (db) => {
|
|
730
745
|
await this._ensureMigrationsTable(db)
|
|
@@ -1075,10 +1090,30 @@ export default class BackgroundJobsStore {
|
|
|
1075
1090
|
if (affectedRows !== 1) return null
|
|
1076
1091
|
await this._releaseConcurrency(db, job.concurrencyKey)
|
|
1077
1092
|
|
|
1078
|
-
|
|
1093
|
+
// Return a snapshot of the transition this update just applied rather than re-reading the row.
|
|
1094
|
+
// We won the conditional update (affectedRows === 1), so this state is authoritative; re-reading
|
|
1095
|
+
// could instead observe a newer state if another dispatcher reclaims a requeued job between the
|
|
1096
|
+
// update and the read (overlapping mains / polling dispatch), which would misreport the
|
|
1097
|
+
// status/terminal/willRetry of this transition to failure/orphan event listeners.
|
|
1098
|
+
const status = shouldRetry ? "queued" : (markOrphaned ? "orphaned" : "failed")
|
|
1099
|
+
/** @type {import("./types.js").BackgroundJobRow} */
|
|
1100
|
+
const transitionedJob = {
|
|
1101
|
+
...job,
|
|
1102
|
+
attempts: nextAttempt,
|
|
1103
|
+
handedOffAtMs: null,
|
|
1104
|
+
lastError: failureMessage,
|
|
1105
|
+
status,
|
|
1106
|
+
workerId: null
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
if (markOrphaned) transitionedJob.orphanedAtMs = now
|
|
1110
|
+
if (shouldRetry) {
|
|
1111
|
+
transitionedJob.scheduledAtMs = scheduledAt
|
|
1112
|
+
} else if (!markOrphaned) {
|
|
1113
|
+
transitionedJob.failedAtMs = now
|
|
1114
|
+
}
|
|
1079
1115
|
|
|
1080
|
-
|
|
1081
|
-
return updatedJob
|
|
1116
|
+
return transitionedJob
|
|
1082
1117
|
}
|
|
1083
1118
|
|
|
1084
1119
|
/**
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
* @property {string} [concurrencyKey] - Opaque non-empty key used to share a concurrency cap. Overrides any queue-derived cap.
|
|
18
18
|
* @property {number} [maxConcurrency] - Positive integer cap; must be paired with `concurrencyKey`.
|
|
19
19
|
* @property {boolean} [deduplicateWhileQueued] - When true (requires `concurrencyKey`), skip the enqueue if a still-queued job with the same `concurrencyKey` already exists, returning that job's id. Keeps an interval-scheduled recurring job (e.g. retention pruning) from piling up redundant queued rows when it runs slower than its interval or no worker is free.
|
|
20
|
+
* @property {number} [scheduledAtMs] - Epoch timestamp in milliseconds when the job becomes eligible for dispatch. Defaults to enqueue time.
|
|
20
21
|
*/
|
|
21
22
|
/**
|
|
22
23
|
* @typedef {object} BackgroundJobPayload
|
|
@@ -332,6 +332,18 @@ export default class BackgroundJobsMain {
|
|
|
332
332
|
job: import("./types.js").BackgroundJobRow;
|
|
333
333
|
workerId?: string;
|
|
334
334
|
}): void;
|
|
335
|
+
/**
|
|
336
|
+
* Emits `background-job-orphaned` (mirrored to `all-error`) for a job the time-based orphan sweep
|
|
337
|
+
* reclaimed after its worker died mid-run. Unlike `background-job-failed`, which fires on a
|
|
338
|
+
* worker's failure report, this fires from the main process's sweep, so applications can react to
|
|
339
|
+
* a dead worker's specific job — recover the work it left behind — without polling. `willRetry`
|
|
340
|
+
* reflects whether the reclaim returned the job to the queue for another attempt.
|
|
341
|
+
* @param {{job: import("./types.js").BackgroundJobRow}} args - The orphaned job.
|
|
342
|
+
* @returns {void}
|
|
343
|
+
*/
|
|
344
|
+
_emitBackgroundJobOrphaned({ job }: {
|
|
345
|
+
job: import("./types.js").BackgroundJobRow;
|
|
346
|
+
}): void;
|
|
335
347
|
/**
|
|
336
348
|
* Runs normalize failure error.
|
|
337
349
|
* @param {?} error - Reported failure value.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/background-jobs/main.js"],"names":[],"mappings":"AA8CA;IACE;;;;;;;;OAQG;IACH,wFANG;QAAoD,aAAa,EAAzD,OAAO,qBAAqB,EAAE,OAAO;QACvB,IAAI;QACJ,IAAI;QACJ,oBAAoB;QACpB,qBAAqB;KAC7C,EAsEA;IApEC,qDAAkC;IAElC,aAA+B;IAC/B,aAAyD;IACzD,qFAA+C;IAC/C,uBAA2C;IAC3C,uKAAiC;IAGjC,6BAAkJ;IAClJ,8BAAuJ;IACvJ,2BAAo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EAAE,gBAAgB,GAAG,IAAI,CAAC,CASjE;IAED;;;OAGG;IACH,6BAFa,OAAO,YAAY,EAAE,0BAA0B,EAAE,CAU7D;IAED;;;;;;OAMG;IACH,uDAJG;QAAmE,cAAc,EAAzE,GAAG,CAAC,OAAO,YAAY,EAAE,0BAA0B,CAAC;QACnC,MAAM,EAAvB,UAAU;KAClB,GAAU,IAAI,CAQhB;IAED;;;;OAIG;IACH,uBAHW,OAAO,YAAY,EAAE,gBAAgB,GACnC,UAAU,GAAG,SAAS,CAMlC;IAED;;;;;;OAMG;IACH,mCAJG;QAAoD,GAAG,EAA/C,OAAO,YAAY,EAAE,gBAAgB;QACpB,MAAM,EAAvB,UAAU;KAClB,GAAU,OAAO,CAUnB;IAED;;;;;;OAMG;IACH,sBAFa,OAAO,CAAC,IAAI,CAAC,CAoBzB;IAED,+
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/background-jobs/main.js"],"names":[],"mappings":"AA8CA;IACE;;;;;;;;OAQG;IACH,wFANG;QAAoD,aAAa,EAAzD,OAAO,qBAAqB,EAAE,OAAO;QACvB,IAAI;QACJ,IAAI;QACJ,oBAAoB;QACpB,qBAAqB;KAC7C,EAsEA;IApEC,qDAAkC;IAElC,aAA+B;IAC/B,aAAyD;IACzD,qFAA+C;IAC/C,uBAA2C;IAC3C,uKAAiC;IAGjC,6BAAkJ;IAClJ,8BAAuJ;IACvJ,2BAAoG;IACpG,eAA8B;IAC9B;;iCAE6B;IAC7B,SADU,GAAG,CAAC,UAAU,CAAC,CACD;IACxB;;iCAE6B;IAC7B,cADU,GAAG,CAAC,UAAU,CAAC,CACI;IAC7B;;sDAEkD;IAClD,gBADU,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CACf;IAC/B;;wCAEoC;IACpC,QADU,GAAG,CAAC,MAAM,GAAG,SAAS,CACT;IACvB;;2DAEuD;IACvD,YADU,UAAU,CAAC,OAAO,U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