@dudousxd/nestjs-durable-core 0.97.0 → 0.99.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/index.cjs +15 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6621 -6559
- package/dist/index.d.ts +6621 -6559
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5007,10 +5007,24 @@ var TransportPool = class {
|
|
|
5007
5007
|
if (transport.groupHealth) reports.push(await transport.groupHealth(group));
|
|
5008
5008
|
}
|
|
5009
5009
|
if (reports.length === 0) return void 0;
|
|
5010
|
+
const shared = reports.find((r) => r.queue !== void 0);
|
|
5011
|
+
const draining = reports.reduce((sum, r) => sum + (r.drainingDepth ?? 0), 0);
|
|
5010
5012
|
return {
|
|
5011
5013
|
group,
|
|
5012
5014
|
depth: reports.reduce((sum, r) => sum + r.depth, 0),
|
|
5013
|
-
liveWorkers: reports.flatMap((r) => r.liveWorkers)
|
|
5015
|
+
liveWorkers: reports.flatMap((r) => r.liveWorkers),
|
|
5016
|
+
...shared?.queue !== void 0 ? {
|
|
5017
|
+
queue: shared.queue
|
|
5018
|
+
} : {},
|
|
5019
|
+
...shared?.queueDepth !== void 0 ? {
|
|
5020
|
+
queueDepth: shared.queueDepth
|
|
5021
|
+
} : {},
|
|
5022
|
+
...reports.some((r) => r.depthSampled) ? {
|
|
5023
|
+
depthSampled: true
|
|
5024
|
+
} : {},
|
|
5025
|
+
...draining > 0 ? {
|
|
5026
|
+
drainingDepth: draining
|
|
5027
|
+
} : {}
|
|
5014
5028
|
};
|
|
5015
5029
|
}
|
|
5016
5030
|
/**
|