@dudousxd/nestjs-durable 0.48.1 → 0.48.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dudousxd/nestjs-durable",
3
- "version": "0.48.1",
3
+ "version": "0.48.2",
4
4
  "description": "Durable workflows for NestJS — module, decorators, discovery and boot recovery",
5
5
  "license": "MIT",
6
6
  "author": "Davide Carvalho",
@@ -68,10 +68,10 @@
68
68
  "@dudousxd/nestjs-diagnostics": "0.5.0",
69
69
  "@tanstack/intent": "0.4.0",
70
70
  "@dudousxd/durable-worker": "0.11.2",
71
- "@dudousxd/nestjs-durable-core": "^0.80.0",
72
- "@dudousxd/nestjs-durable-dashboard": "0.51.0",
73
- "@dudousxd/nestjs-durable-testing": "^0.19.0",
71
+ "@dudousxd/nestjs-durable-core": "^0.80.1",
72
+ "@dudousxd/nestjs-durable-testing": "^0.19.1",
74
73
  "@dudousxd/nestjs-durable-transport-bullmq": "0.22.3",
74
+ "@dudousxd/nestjs-durable-dashboard": "0.51.0",
75
75
  "@dudousxd/nestjs-durable-transport-event-emitter": "^0.5.2"
76
76
  },
77
77
  "module": "./dist/index.js",
@@ -172,8 +172,11 @@ return this.workflows.waitForRun(runId); // resolves once the run settles
172
172
  ```
173
173
 
174
174
  `start` creates the run as `'pending'` (or `'suspended'` when `opts.startAt` is in the future)
175
- and a worker runs the body asynchronously; only `waitForRun`
176
- resolves with the settled outcome. Source: packages/nestjs/src/workflow.service.ts.
175
+ and a worker runs the body asynchronously; only `waitForRun` resolves with the settled outcome.
176
+ By default `waitForRun` settles on the first suspension too, so for a delayed start (or any run
177
+ that sleeps or waits on a signal) await the real result with
178
+ `waitForRun(runId, { until: 'terminal' })`. Source: packages/nestjs/src/workflow.service.ts,
179
+ `WorkflowEngine.waitForRun` in packages/core/src/engine.ts.
177
180
 
178
181
  ### 2. Leaving `autoSchema` on in production
179
182