@webtypen/webframez-core 0.3.102 → 0.3.103
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.
|
@@ -371,7 +371,7 @@ class QueueWorkerCommand extends ConsoleCommand_1.ConsoleCommand {
|
|
|
371
371
|
return null;
|
|
372
372
|
}
|
|
373
373
|
const jobclasses = [...this.workerConfig.jobclasses];
|
|
374
|
-
if (Config_1.Config.get("backup") && !jobclasses.includes("BackupRunJob")) {
|
|
374
|
+
if (this.workerConfig.includeBackupJobs !== false && Config_1.Config.get("backup") && !jobclasses.includes("BackupRunJob")) {
|
|
375
375
|
jobclasses.push("BackupRunJob");
|
|
376
376
|
}
|
|
377
377
|
return jobclasses;
|
package/docs/queue-workers.md
CHANGED
|
@@ -130,3 +130,8 @@ independent bounded pool using the same atomic claims and renewable leases as
|
|
|
130
130
|
`Queue.runOnce`. `await worker.stop({drain: true})` stops new claims and waits for
|
|
131
131
|
active handlers; `worker.stop()` aborts that pool's handlers. Pools do not share
|
|
132
132
|
abort controllers. Host-wide resource limits remain the application's concern.
|
|
133
|
+
|
|
134
|
+
Dedicated workers with an explicit `jobclasses` allowlist may set
|
|
135
|
+
`includeBackupJobs: false` to prevent the automatic addition of `BackupRunJob`.
|
|
136
|
+
This keeps long backups out of a latency-sensitive worker. Existing workers keep
|
|
137
|
+
the previous default; explicitly listed backup jobs remain allowed.
|
package/package.json
CHANGED