@sidequest/engine 1.15.1 → 1.16.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.
- package/dist/engine.cjs +22 -1
- package/dist/engine.cjs.map +1 -1
- package/dist/engine.d.ts +44 -0
- package/dist/engine.js +22 -1
- package/dist/engine.js.map +1 -1
- package/dist/execution/dispatcher.cjs +5 -2
- package/dist/execution/dispatcher.cjs.map +1 -1
- package/dist/execution/dispatcher.js +5 -2
- package/dist/execution/dispatcher.js.map +1 -1
- package/dist/execution/executor-manager.cjs +62 -26
- package/dist/execution/executor-manager.cjs.map +1 -1
- package/dist/execution/executor-manager.d.ts +13 -1
- package/dist/execution/executor-manager.js +63 -27
- package/dist/execution/executor-manager.js.map +1 -1
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/job/job-builder.cjs +1 -0
- package/dist/job/job-builder.cjs.map +1 -1
- package/dist/job/job-builder.js +1 -0
- package/dist/job/job-builder.js.map +1 -1
- package/dist/routines/release-stale-jobs.cjs +1 -0
- package/dist/routines/release-stale-jobs.cjs.map +1 -1
- package/dist/routines/release-stale-jobs.js +1 -0
- package/dist/routines/release-stale-jobs.js.map +1 -1
- package/dist/shared-runner/inline-runner.cjs +44 -0
- package/dist/shared-runner/inline-runner.cjs.map +1 -0
- package/dist/shared-runner/inline-runner.d.ts +35 -0
- package/dist/shared-runner/inline-runner.js +42 -0
- package/dist/shared-runner/inline-runner.js.map +1 -0
- package/dist/shared-runner/job-runner.d.ts +24 -0
- package/dist/shared-runner/runner-pool.cjs +34 -2
- package/dist/shared-runner/runner-pool.cjs.map +1 -1
- package/dist/shared-runner/runner-pool.d.ts +10 -4
- package/dist/shared-runner/runner-pool.js +35 -3
- package/dist/shared-runner/runner-pool.js.map +1 -1
- package/dist/shared-runner/runner.cjs +45 -4
- package/dist/shared-runner/runner.cjs.map +1 -1
- package/dist/shared-runner/runner.d.ts +12 -2
- package/dist/shared-runner/runner.js +46 -5
- package/dist/shared-runner/runner.js.map +1 -1
- package/dist/workers/main.cjs +6 -76
- package/dist/workers/main.cjs.map +1 -1
- package/dist/workers/main.d.ts +1 -22
- package/dist/workers/main.js +6 -76
- package/dist/workers/main.js.map +1 -1
- package/dist/workers/worker-runtime.cjs +88 -0
- package/dist/workers/worker-runtime.cjs.map +1 -0
- package/dist/workers/worker-runtime.d.ts +44 -0
- package/dist/workers/worker-runtime.js +86 -0
- package/dist/workers/worker-runtime.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var core = require('@sidequest/core');
|
|
4
|
+
var nodeCron = require('node-cron');
|
|
5
|
+
var dispatcher = require('../execution/dispatcher.cjs');
|
|
6
|
+
var executorManager = require('../execution/executor-manager.cjs');
|
|
7
|
+
var queueManager = require('../execution/queue-manager.cjs');
|
|
8
|
+
var cleanupFinishedJob = require('../routines/cleanup-finished-job.cjs');
|
|
9
|
+
var releaseStaleJobs = require('../routines/release-stale-jobs.cjs');
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Owns the runtime side of the engine: the dispatcher loop plus the stale-job and finished-job
|
|
13
|
+
* cron routines.
|
|
14
|
+
*
|
|
15
|
+
* It runs either inside the forked worker process (driven by {@link MainWorker}) or directly in the
|
|
16
|
+
* host process when the engine is started with `fork: false`. It does NOT own the backend
|
|
17
|
+
* lifecycle: closing the backend remains the responsibility of the {@link Engine} that created it.
|
|
18
|
+
*/
|
|
19
|
+
class WorkerRuntime {
|
|
20
|
+
backend;
|
|
21
|
+
config;
|
|
22
|
+
dispatcher;
|
|
23
|
+
cronTasks = [];
|
|
24
|
+
/**
|
|
25
|
+
* Creates a new WorkerRuntime.
|
|
26
|
+
* @param backend The backend instance.
|
|
27
|
+
* @param config The non-nullable engine configuration.
|
|
28
|
+
*/
|
|
29
|
+
constructor(backend, config) {
|
|
30
|
+
this.backend = backend;
|
|
31
|
+
this.config = config;
|
|
32
|
+
this.dispatcher = new dispatcher.Dispatcher(backend, new queueManager.QueueManager(backend, config.queues, config.queueDefaults), new executorManager.ExecutorManager(backend, config), config.jobPollingInterval);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Starts the dispatcher loop and the cron routines.
|
|
36
|
+
*/
|
|
37
|
+
async start() {
|
|
38
|
+
this.dispatcher.start();
|
|
39
|
+
await this.startCron();
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Stops the cron routines and drains the dispatcher. Unlike the forked worker (which relies on
|
|
43
|
+
* process exit), the in-process runtime must explicitly stop its cron tasks to avoid leaks.
|
|
44
|
+
*/
|
|
45
|
+
async shutdown() {
|
|
46
|
+
core.logger("WorkerRuntime").debug("Stopping cron routines");
|
|
47
|
+
// ScheduledTask.stop() returns `void | Promise<void>`; normalize before aggregating.
|
|
48
|
+
await Promise.all(this.cronTasks.map((task) => Promise.resolve(task.stop())));
|
|
49
|
+
this.cronTasks = [];
|
|
50
|
+
core.logger("WorkerRuntime").debug("Stopping dispatcher");
|
|
51
|
+
await this.dispatcher.stop();
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Schedules the stale-job and finished-job cron routines according to the config and runs each
|
|
55
|
+
* once immediately. Either routine can be disabled with a `false` interval.
|
|
56
|
+
*/
|
|
57
|
+
async startCron() {
|
|
58
|
+
const promises = [];
|
|
59
|
+
if (this.config.releaseStaleJobsIntervalMin !== false) {
|
|
60
|
+
promises.push(this.scheduleAndRun(this.config.releaseStaleJobsIntervalMin, "ReleaseStaleJob", () => releaseStaleJobs.releaseStaleJobs(this.backend, this.config.releaseStaleJobsMaxStaleMs, this.config.releaseStaleJobsMaxClaimedMs)));
|
|
61
|
+
}
|
|
62
|
+
if (this.config.cleanupFinishedJobsIntervalMin !== false) {
|
|
63
|
+
promises.push(this.scheduleAndRun(this.config.cleanupFinishedJobsIntervalMin, "CleanupJob", () => cleanupFinishedJob.cleanupFinishedJobs(this.backend, this.config.cleanupFinishedJobsOlderThan)));
|
|
64
|
+
}
|
|
65
|
+
await Promise.all(promises).catch((error) => core.logger("WorkerRuntime").error(error));
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Schedules a recurring task at the given minute interval, tracks it for shutdown, and triggers
|
|
69
|
+
* an immediate run.
|
|
70
|
+
*/
|
|
71
|
+
scheduleAndRun(intervalMin, name, task) {
|
|
72
|
+
core.logger("WorkerRuntime").debug(`Starting ${name} cron with interval: ${intervalMin} minutes`);
|
|
73
|
+
const scheduled = nodeCron.schedule(`*/${intervalMin} * * * *`, async () => {
|
|
74
|
+
try {
|
|
75
|
+
core.logger("WorkerRuntime").debug(`Running ${name} task`);
|
|
76
|
+
await task();
|
|
77
|
+
}
|
|
78
|
+
catch (error) {
|
|
79
|
+
core.logger("WorkerRuntime").error(`Error on running ${name}!`, error);
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
this.cronTasks.push(scheduled);
|
|
83
|
+
return scheduled.execute();
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
exports.WorkerRuntime = WorkerRuntime;
|
|
88
|
+
//# sourceMappingURL=worker-runtime.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker-runtime.cjs","sources":["../../src/workers/worker-runtime.ts"],"sourcesContent":[null],"names":["Dispatcher","QueueManager","ExecutorManager","logger","releaseStaleJobs","cleanupFinishedJobs","cron"],"mappings":";;;;;;;;;;AAUA;;;;;;;AAOG;MACU,aAAa,CAAA;AAUd,IAAA,OAAA;AACA,IAAA,MAAA;AAVF,IAAA,UAAU;IACV,SAAS,GAAoB,EAAE;AAEvC;;;;AAIG;IACH,WAAA,CACU,OAAgB,EAChB,MAA+B,EAAA;QAD/B,IAAA,CAAA,OAAO,GAAP,OAAO;QACP,IAAA,CAAA,MAAM,GAAN,MAAM;AAEd,QAA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from '../engine.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Owns the runtime side of the engine: the dispatcher loop plus the stale-job and finished-job
|
|
6
|
+
* cron routines.
|
|
7
|
+
*
|
|
8
|
+
* It runs either inside the forked worker process (driven by {@link MainWorker}) or directly in the
|
|
9
|
+
* host process when the engine is started with `fork: false`. It does NOT own the backend
|
|
10
|
+
* lifecycle: closing the backend remains the responsibility of the {@link Engine} that created it.
|
|
11
|
+
*/
|
|
12
|
+
declare class WorkerRuntime {
|
|
13
|
+
private backend;
|
|
14
|
+
private config;
|
|
15
|
+
private dispatcher;
|
|
16
|
+
private cronTasks;
|
|
17
|
+
/**
|
|
18
|
+
* Creates a new WorkerRuntime.
|
|
19
|
+
* @param backend The backend instance.
|
|
20
|
+
* @param config The non-nullable engine configuration.
|
|
21
|
+
*/
|
|
22
|
+
constructor(backend: Backend, config: NonNullableEngineConfig);
|
|
23
|
+
/**
|
|
24
|
+
* Starts the dispatcher loop and the cron routines.
|
|
25
|
+
*/
|
|
26
|
+
start(): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Stops the cron routines and drains the dispatcher. Unlike the forked worker (which relies on
|
|
29
|
+
* process exit), the in-process runtime must explicitly stop its cron tasks to avoid leaks.
|
|
30
|
+
*/
|
|
31
|
+
shutdown(): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Schedules the stale-job and finished-job cron routines according to the config and runs each
|
|
34
|
+
* once immediately. Either routine can be disabled with a `false` interval.
|
|
35
|
+
*/
|
|
36
|
+
startCron(): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Schedules a recurring task at the given minute interval, tracks it for shutdown, and triggers
|
|
39
|
+
* an immediate run.
|
|
40
|
+
*/
|
|
41
|
+
private scheduleAndRun;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { WorkerRuntime };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { logger } from '@sidequest/core';
|
|
2
|
+
import nodeCron from 'node-cron';
|
|
3
|
+
import { Dispatcher } from '../execution/dispatcher.js';
|
|
4
|
+
import { ExecutorManager } from '../execution/executor-manager.js';
|
|
5
|
+
import { QueueManager } from '../execution/queue-manager.js';
|
|
6
|
+
import { cleanupFinishedJobs } from '../routines/cleanup-finished-job.js';
|
|
7
|
+
import { releaseStaleJobs } from '../routines/release-stale-jobs.js';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Owns the runtime side of the engine: the dispatcher loop plus the stale-job and finished-job
|
|
11
|
+
* cron routines.
|
|
12
|
+
*
|
|
13
|
+
* It runs either inside the forked worker process (driven by {@link MainWorker}) or directly in the
|
|
14
|
+
* host process when the engine is started with `fork: false`. It does NOT own the backend
|
|
15
|
+
* lifecycle: closing the backend remains the responsibility of the {@link Engine} that created it.
|
|
16
|
+
*/
|
|
17
|
+
class WorkerRuntime {
|
|
18
|
+
backend;
|
|
19
|
+
config;
|
|
20
|
+
dispatcher;
|
|
21
|
+
cronTasks = [];
|
|
22
|
+
/**
|
|
23
|
+
* Creates a new WorkerRuntime.
|
|
24
|
+
* @param backend The backend instance.
|
|
25
|
+
* @param config The non-nullable engine configuration.
|
|
26
|
+
*/
|
|
27
|
+
constructor(backend, config) {
|
|
28
|
+
this.backend = backend;
|
|
29
|
+
this.config = config;
|
|
30
|
+
this.dispatcher = new Dispatcher(backend, new QueueManager(backend, config.queues, config.queueDefaults), new ExecutorManager(backend, config), config.jobPollingInterval);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Starts the dispatcher loop and the cron routines.
|
|
34
|
+
*/
|
|
35
|
+
async start() {
|
|
36
|
+
this.dispatcher.start();
|
|
37
|
+
await this.startCron();
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Stops the cron routines and drains the dispatcher. Unlike the forked worker (which relies on
|
|
41
|
+
* process exit), the in-process runtime must explicitly stop its cron tasks to avoid leaks.
|
|
42
|
+
*/
|
|
43
|
+
async shutdown() {
|
|
44
|
+
logger("WorkerRuntime").debug("Stopping cron routines");
|
|
45
|
+
// ScheduledTask.stop() returns `void | Promise<void>`; normalize before aggregating.
|
|
46
|
+
await Promise.all(this.cronTasks.map((task) => Promise.resolve(task.stop())));
|
|
47
|
+
this.cronTasks = [];
|
|
48
|
+
logger("WorkerRuntime").debug("Stopping dispatcher");
|
|
49
|
+
await this.dispatcher.stop();
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Schedules the stale-job and finished-job cron routines according to the config and runs each
|
|
53
|
+
* once immediately. Either routine can be disabled with a `false` interval.
|
|
54
|
+
*/
|
|
55
|
+
async startCron() {
|
|
56
|
+
const promises = [];
|
|
57
|
+
if (this.config.releaseStaleJobsIntervalMin !== false) {
|
|
58
|
+
promises.push(this.scheduleAndRun(this.config.releaseStaleJobsIntervalMin, "ReleaseStaleJob", () => releaseStaleJobs(this.backend, this.config.releaseStaleJobsMaxStaleMs, this.config.releaseStaleJobsMaxClaimedMs)));
|
|
59
|
+
}
|
|
60
|
+
if (this.config.cleanupFinishedJobsIntervalMin !== false) {
|
|
61
|
+
promises.push(this.scheduleAndRun(this.config.cleanupFinishedJobsIntervalMin, "CleanupJob", () => cleanupFinishedJobs(this.backend, this.config.cleanupFinishedJobsOlderThan)));
|
|
62
|
+
}
|
|
63
|
+
await Promise.all(promises).catch((error) => logger("WorkerRuntime").error(error));
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Schedules a recurring task at the given minute interval, tracks it for shutdown, and triggers
|
|
67
|
+
* an immediate run.
|
|
68
|
+
*/
|
|
69
|
+
scheduleAndRun(intervalMin, name, task) {
|
|
70
|
+
logger("WorkerRuntime").debug(`Starting ${name} cron with interval: ${intervalMin} minutes`);
|
|
71
|
+
const scheduled = nodeCron.schedule(`*/${intervalMin} * * * *`, async () => {
|
|
72
|
+
try {
|
|
73
|
+
logger("WorkerRuntime").debug(`Running ${name} task`);
|
|
74
|
+
await task();
|
|
75
|
+
}
|
|
76
|
+
catch (error) {
|
|
77
|
+
logger("WorkerRuntime").error(`Error on running ${name}!`, error);
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
this.cronTasks.push(scheduled);
|
|
81
|
+
return scheduled.execute();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export { WorkerRuntime };
|
|
86
|
+
//# sourceMappingURL=worker-runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker-runtime.js","sources":["../../src/workers/worker-runtime.ts"],"sourcesContent":[null],"names":["cron"],"mappings":";;;;;;;;AAUA;;;;;;;AAOG;MACU,aAAa,CAAA;AAUd,IAAA,OAAA;AACA,IAAA,MAAA;AAVF,IAAA,UAAU;IACV,SAAS,GAAoB,EAAE;AAEvC;;;;AAIG;IACH,WAAA,CACU,OAAgB,EAChB,MAA+B,EAAA;QAD/B,IAAA,CAAA,OAAO,GAAP,OAAO;QACP,IAAA,CAAA,MAAM,GAAN,MAAM;AAEd,QAAA,IAAI,CAAC,UAAU,GAAG,IAAI,UAAU,CAC9B,OAAO,EACP,IAAI,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC,EAC9D,IAAI,eAAe,CAAC,OAAO,EAAE,MAAM,CAAC,EACpC,MAAM,CAAC,kBAAkB,CAC1B;IACH;AAEA;;AAEG;AACH,IAAA,MAAM,KAAK,GAAA;AACT,QAAA,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE;AACvB,QAAA,MAAM,IAAI,CAAC,SAAS,EAAE;IACxB;AAEA;;;AAGG;AACH,IAAA,MAAM,QAAQ,GAAA;QACZ,MAAM,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC;;QAEvD,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAA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QAAQ,CAAC,CAAA,EAAA,EAAK,WAAW,CAAA,QAAA,CAAU,EAAE,YAAW;AACrE,YAAA,IAAI;gBACF,MAAM,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,CAAA,QAAA,EAAW,IAAI,CAAA,KAAA,CAAO,CAAC;gBACrD,MAAM,IAAI,EAAE;YACd;YAAE,OAAO,KAAc,EAAE;AACvB,gBAAA,MAAM,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,CAAA,iBAAA,EAAoB,IAAI,CAAA,CAAA,CAAG,EAAE,KAAK,CAAC;YACnE;AACF,QAAA,CAAC,CAAC;AACF,QAAA,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC;AAC9B,QAAA,OAAO,SAAS,CAAC,OAAO,EAAE;IAC5B;AACD;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sidequest/engine",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"description": "@sidequest/engine is the core engine of SideQuest, a distributed background job processing system for Node.js and TypeScript.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nodejs",
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
},
|
|
43
43
|
"license": "LGPL-3.0-or-later",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@sidequest/backend": "1.
|
|
46
|
-
"@sidequest/core": "1.
|
|
45
|
+
"@sidequest/backend": "1.16.0",
|
|
46
|
+
"@sidequest/core": "1.16.0",
|
|
47
47
|
"node-cron": "^4.2.1",
|
|
48
48
|
"piscina": "^5.1.4"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"sidequest": "1.
|
|
51
|
+
"sidequest": "1.16.0"
|
|
52
52
|
}
|
|
53
53
|
}
|