@dudousxd/nestjs-durable 0.52.1 → 0.52.3

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
@@ -2244,7 +2244,12 @@ var TimerPoller = class {
2244
2244
  async onApplicationBootstrap() {
2245
2245
  for (const s of this.options.schedules ?? []) (0, import_nestjs_durable_core14.workflowName)(s.workflow);
2246
2246
  if (!isDrivingOperator(this.options)) return;
2247
+ this.engine.consumeRuns?.();
2247
2248
  this.unsubscribeEnqueued = this.engine.onEnqueued((runId) => {
2249
+ if (typeof this.engine.runEnqueued === "function") {
2250
+ this.engine.runEnqueued(runId);
2251
+ return;
2252
+ }
2248
2253
  void this.engine.runOne(runId).catch((error) => {
2249
2254
  console.error(`[nestjs-durable] could not run enqueued run ${runId}:`, error);
2250
2255
  });