@dudousxd/nestjs-durable 0.47.0 → 0.47.1

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.d.cts CHANGED
@@ -500,6 +500,37 @@ interface DurableModuleOptions {
500
500
  * Ignored when `remoteRedispatchMs` is unset. Operator only.
501
501
  */
502
502
  remoteRedispatchMax?: number;
503
+ /**
504
+ * Fallback wake-up (ms) for a run suspended on an event (child, signal, `waitForEvent`, remote
505
+ * result) whose wake-up was lost: the reconcile pass re-drives it after this window, an idempotent
506
+ * replay that re-suspends a still-pending wait. Defaults to 300000 (5min); `0` disables it.
507
+ * See `WorkflowEngineDeps.reconcileMs`. Operator only.
508
+ */
509
+ reconcileMs?: number;
510
+ /**
511
+ * The most due timers one timer-poll pass loads and drives, most overdue first, so a wave of
512
+ * thousands of due runs is worked through in batches. Defaults to 500; a non-finite or sub-1 value
513
+ * falls back to the default. See `WorkflowEngineDeps.timerBatchSize`. Operator only.
514
+ */
515
+ timerBatchSize?: number;
516
+ /**
517
+ * Retention (ms) for a buffered event that no `waitForEvent` ever claims; the reconcile pass prunes
518
+ * rows past `publishedAt + eventBufferTtlMs`. Omit (or `0`) to keep them until consumed, the
519
+ * default. See `WorkflowEngineDeps.eventBufferTtlMs`. Operator only.
520
+ */
521
+ eventBufferTtlMs?: number;
522
+ /**
523
+ * How long (ms) a run parked `blocked` (no capable, protocol-compatible live worker) waits before
524
+ * the blocked-recovery poll re-checks the fleet. Defaults to 5000. See
525
+ * `WorkflowEngineDeps.blockedPollMs`. Operator only.
526
+ */
527
+ blockedPollMs?: number;
528
+ /**
529
+ * Persist a `running` checkpoint when a local step's body begins, so an in-flight step survives a
530
+ * dashboard reload. Defaults to `true`; set `false` on hot paths with many short local steps to
531
+ * halve their checkpoint writes. See `WorkflowEngineDeps.trackStepStart`. Operator only.
532
+ */
533
+ trackStepStart?: boolean;
503
534
  /**
504
535
  * The **default** workflow to route dead-lettered runs to, for workflows that don't declare their
505
536
  * own. When a run is moved to `dead` (exceeded `maxRecoveryAttempts`), the started handler gets a
package/dist/index.d.ts CHANGED
@@ -500,6 +500,37 @@ interface DurableModuleOptions {
500
500
  * Ignored when `remoteRedispatchMs` is unset. Operator only.
501
501
  */
502
502
  remoteRedispatchMax?: number;
503
+ /**
504
+ * Fallback wake-up (ms) for a run suspended on an event (child, signal, `waitForEvent`, remote
505
+ * result) whose wake-up was lost: the reconcile pass re-drives it after this window, an idempotent
506
+ * replay that re-suspends a still-pending wait. Defaults to 300000 (5min); `0` disables it.
507
+ * See `WorkflowEngineDeps.reconcileMs`. Operator only.
508
+ */
509
+ reconcileMs?: number;
510
+ /**
511
+ * The most due timers one timer-poll pass loads and drives, most overdue first, so a wave of
512
+ * thousands of due runs is worked through in batches. Defaults to 500; a non-finite or sub-1 value
513
+ * falls back to the default. See `WorkflowEngineDeps.timerBatchSize`. Operator only.
514
+ */
515
+ timerBatchSize?: number;
516
+ /**
517
+ * Retention (ms) for a buffered event that no `waitForEvent` ever claims; the reconcile pass prunes
518
+ * rows past `publishedAt + eventBufferTtlMs`. Omit (or `0`) to keep them until consumed, the
519
+ * default. See `WorkflowEngineDeps.eventBufferTtlMs`. Operator only.
520
+ */
521
+ eventBufferTtlMs?: number;
522
+ /**
523
+ * How long (ms) a run parked `blocked` (no capable, protocol-compatible live worker) waits before
524
+ * the blocked-recovery poll re-checks the fleet. Defaults to 5000. See
525
+ * `WorkflowEngineDeps.blockedPollMs`. Operator only.
526
+ */
527
+ blockedPollMs?: number;
528
+ /**
529
+ * Persist a `running` checkpoint when a local step's body begins, so an in-flight step survives a
530
+ * dashboard reload. Defaults to `true`; set `false` on hot paths with many short local steps to
531
+ * halve their checkpoint writes. See `WorkflowEngineDeps.trackStepStart`. Operator only.
532
+ */
533
+ trackStepStart?: boolean;
503
534
  /**
504
535
  * The **default** workflow to route dead-lettered runs to, for workflows that don't declare their
505
536
  * own. When a run is moved to `dead` (exceeded `maxRecoveryAttempts`), the started handler gets a
package/dist/index.js CHANGED
@@ -2545,6 +2545,11 @@ var DurableModule = class _DurableModule {
2545
2545
  remoteAdvanceSilenceMs: options.remoteAdvanceSilenceMs,
2546
2546
  remoteRedispatchMs: options.remoteRedispatchMs,
2547
2547
  remoteRedispatchMax: options.remoteRedispatchMax,
2548
+ reconcileMs: options.reconcileMs,
2549
+ timerBatchSize: options.timerBatchSize,
2550
+ eventBufferTtlMs: options.eventBufferTtlMs,
2551
+ blockedPollMs: options.blockedPollMs,
2552
+ trackStepStart: options.trackStepStart,
2548
2553
  instanceId: options.instanceId,
2549
2554
  namespace: options.namespace,
2550
2555
  webhookUrl: options.webhookUrl,