@dudousxd/nestjs-durable-core 0.106.2 → 0.106.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.d.cts CHANGED
@@ -6345,7 +6345,9 @@ interface StateStore {
6345
6345
  /**
6346
6346
  * Settle steps from their results: per entry and in input order, while the row at `(runId, seq)`
6347
6347
  * is still `pending`, write the entry's `status`, `output`, `error`, `events`, `startedAt` and
6348
- * `finishedAt` (an absent one is stored empty) and leave every other column as it is stored;
6348
+ * `finishedAt` (an absent one is stored empty), clear `wakeAt` (a settled step has no dispatch
6349
+ * lease left, and a failed one's `wakeAt` is later its retry's backoff deadline), and leave every
6350
+ * other column as it is stored;
6349
6351
  * resolves whether each entry wrote. Claims like {@link saveCheckpointsIfPending}: a later entry for
6350
6352
  * a row an earlier one settled loses, and a rejection writes nothing. The engine settles a batch of
6351
6353
  * one run's step results through it, so a step's `input` (an LLM prompt, say) is not written again
@@ -6360,7 +6362,8 @@ interface StateStore {
6360
6362
  * `cancelled` or `completed` (a late result for a finished run settles nothing), write the result
6361
6363
  * (see {@link StepResultSettlement} for what keeps its stored value) and resolve the row as it now
6362
6364
  * reads, without its `input` (as {@link getCheckpointsForSettle} reads it); `null` for an entry
6363
- * that wrote nothing (the row is absent or already settled, or the run finished). Claims like
6365
+ * that wrote nothing (the row is absent or already settled, or the run finished). Clears `wakeAt`
6366
+ * as {@link settleCheckpointsIfPending} does. Claims like
6364
6367
  * {@link settleCheckpointsIfPending}: a later entry for a row an earlier one settled loses, and a
6365
6368
  * rejection writes nothing. The engine settles a batch of one run's step results through it
6366
6369
  * without reading the rows first.
package/dist/index.d.ts CHANGED
@@ -6345,7 +6345,9 @@ interface StateStore {
6345
6345
  /**
6346
6346
  * Settle steps from their results: per entry and in input order, while the row at `(runId, seq)`
6347
6347
  * is still `pending`, write the entry's `status`, `output`, `error`, `events`, `startedAt` and
6348
- * `finishedAt` (an absent one is stored empty) and leave every other column as it is stored;
6348
+ * `finishedAt` (an absent one is stored empty), clear `wakeAt` (a settled step has no dispatch
6349
+ * lease left, and a failed one's `wakeAt` is later its retry's backoff deadline), and leave every
6350
+ * other column as it is stored;
6349
6351
  * resolves whether each entry wrote. Claims like {@link saveCheckpointsIfPending}: a later entry for
6350
6352
  * a row an earlier one settled loses, and a rejection writes nothing. The engine settles a batch of
6351
6353
  * one run's step results through it, so a step's `input` (an LLM prompt, say) is not written again
@@ -6360,7 +6362,8 @@ interface StateStore {
6360
6362
  * `cancelled` or `completed` (a late result for a finished run settles nothing), write the result
6361
6363
  * (see {@link StepResultSettlement} for what keeps its stored value) and resolve the row as it now
6362
6364
  * reads, without its `input` (as {@link getCheckpointsForSettle} reads it); `null` for an entry
6363
- * that wrote nothing (the row is absent or already settled, or the run finished). Claims like
6365
+ * that wrote nothing (the row is absent or already settled, or the run finished). Clears `wakeAt`
6366
+ * as {@link settleCheckpointsIfPending} does. Claims like
6364
6367
  * {@link settleCheckpointsIfPending}: a later entry for a row an earlier one settled loses, and a
6365
6368
  * rejection writes nothing. The engine settles a batch of one run's step results through it
6366
6369
  * without reading the rows first.
package/dist/index.js CHANGED
@@ -16082,7 +16082,8 @@ ${run.workflowVersion}`;
16082
16082
  if (!settle2) {
16083
16083
  return this.savePendingCheckpoints(settlements.map((s, i) => ({
16084
16084
  ...settled[i],
16085
- ...s
16085
+ ...s,
16086
+ wakeAt: void 0
16086
16087
  })));
16087
16088
  }
16088
16089
  if (settlements.length > 1) {
@@ -18406,7 +18407,8 @@ var InMemoryStateStore = class {
18406
18407
  if (cp?.status !== "pending") return false;
18407
18408
  this.checkpoints.set(key, {
18408
18409
  ...cp,
18409
- ...settlement
18410
+ ...settlement,
18411
+ wakeAt: void 0
18410
18412
  });
18411
18413
  return true;
18412
18414
  });
@@ -18478,7 +18480,8 @@ var InMemoryStateStore = class {
18478
18480
  const cp = before.get(this.key(settlement.runId, settlement.seq));
18479
18481
  out[at[k]] = {
18480
18482
  ...cp,
18481
- ...settlement
18483
+ ...settlement,
18484
+ wakeAt: void 0
18482
18485
  };
18483
18486
  });
18484
18487
  return out;