@dudousxd/nestjs-durable 0.49.0 → 0.50.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
@@ -2276,6 +2276,7 @@ var TimerPoller = class {
2276
2276
  await this.sweep("recoverIncomplete", () => this.engine.recoverIncomplete());
2277
2277
  await this.sweep("resumeDueTimers", () => this.engine.resumeDueTimers());
2278
2278
  await this.sweep("sweepTimeouts", () => this.engine.sweepTimeouts());
2279
+ await this.sweep("sweepStalled", async () => this.engine.sweepStalled?.());
2279
2280
  const schedules = this.options.schedules;
2280
2281
  if (schedules && schedules.length > 0) {
2281
2282
  await this.sweep("schedules", () => (0, import_nestjs_durable_core13.runSchedules)(this.engine, schedules, Date.now()));
@@ -2974,6 +2975,7 @@ var DurableModule = class _DurableModule {
2974
2975
  remoteRedispatchMs: options.remoteRedispatchMs,
2975
2976
  remoteRedispatchMax: options.remoteRedispatchMax,
2976
2977
  reconcileMs: options.reconcileMs,
2978
+ stalledAfterMs: options.stalledAfterMs,
2977
2979
  timerBatchSize: options.timerBatchSize,
2978
2980
  eventBufferTtlMs: options.eventBufferTtlMs,
2979
2981
  blockedPollMs: options.blockedPollMs,
@@ -2997,6 +2999,7 @@ var DurableModule = class _DurableModule {
2997
2999
  } : void 0
2998
3000
  });
2999
3001
  for (const queue of options.queues ?? []) engine.registerQueue(queue);
3002
+ if (options.onStalled) engine.onStalled(options.onStalled);
3000
3003
  return engine;
3001
3004
  }, "useFactory"),
3002
3005
  inject: [