@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 CHANGED
@@ -5300,10 +5300,24 @@ var TransportPool = class {
5300
5300
  if (transport.groupHealth) reports.push(await transport.groupHealth(group));
5301
5301
  }
5302
5302
  if (reports.length === 0) return void 0;
5303
+ const shared = reports.find((r) => r.queue !== void 0);
5304
+ const draining = reports.reduce((sum, r) => sum + (r.drainingDepth ?? 0), 0);
5303
5305
  return {
5304
5306
  group,
5305
5307
  depth: reports.reduce((sum, r) => sum + r.depth, 0),
5306
- liveWorkers: reports.flatMap((r) => r.liveWorkers)
5308
+ liveWorkers: reports.flatMap((r) => r.liveWorkers),
5309
+ ...shared?.queue !== void 0 ? {
5310
+ queue: shared.queue
5311
+ } : {},
5312
+ ...shared?.queueDepth !== void 0 ? {
5313
+ queueDepth: shared.queueDepth
5314
+ } : {},
5315
+ ...reports.some((r) => r.depthSampled) ? {
5316
+ depthSampled: true
5317
+ } : {},
5318
+ ...draining > 0 ? {
5319
+ drainingDepth: draining
5320
+ } : {}
5307
5321
  };
5308
5322
  }
5309
5323
  /**