workflow 4.8.16 → 4.8.18

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.
@@ -19,6 +19,7 @@ Additionally, the runtime previously called `world.runs.get(runId)` before `run_
19
19
  - If `events.create` errors with **429 or 5xx**, we log a warning saying that run creation failed but the run was accepted — creation will be re-tried async by the runtime when it processes the queue message. The returned `Run` instance is marked with `resilientStart = true`.
20
20
  - If `events.create` errors with **409** (EntityConflictError), the run already exists (e.g., the queue handler's resilient start path created it first due to a cold-start race). This is treated as success.
21
21
  - If `world.queue` fails, we still throw — the run truly failed and was not enqueued.
22
+ - `run_created` has usually committed by then, so a thrown queue failure leaves a run that exists and never runs (and a caller that retries starts a second one). World queues should therefore retry a transient send failure themselves before it reaches `start()`: world-vercel re-sends after a transport failure, its request deadline, a 5xx or a short 429, up to 3 attempts (see `packages/world-vercel/src/queue-send-retry.ts`). Every re-send is safe: keyed messages are deduplicated by the queue, and a duplicate orchestrator message is a spare wake.
22
23
  - The queue invocation now receives all the run inputs (`input`, `deploymentId`, `workflowName`, `specVersion`, `executionContext`) via `runInput` so the runtime can create the run later if needed.
23
24
  - When the runtime re-enqueues itself, it does **not** pass these inputs — only the first queue cycle carries them.
24
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "workflow",
3
- "version": "4.8.16",
3
+ "version": "4.8.18",
4
4
  "description": "Workflow SDK - Build durable, resilient, and observable workflows",
5
5
  "main": "dist/typescript-plugin.cjs",
6
6
  "type": "module",
@@ -57,18 +57,18 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "ms": "2.1.3",
60
- "@workflow/astro": "4.0.31",
61
- "@workflow/cli": "4.3.20",
62
- "@workflow/core": "4.8.16",
60
+ "@workflow/astro": "4.0.33",
61
+ "@workflow/cli": "4.3.22",
62
+ "@workflow/core": "4.8.18",
63
63
  "@workflow/errors": "4.2.2",
64
64
  "@workflow/typescript-plugin": "4.0.3",
65
65
  "@workflow/utils": "4.1.4",
66
- "@workflow/next": "4.1.20",
67
- "@workflow/nest": "4.0.32",
68
- "@workflow/nitro": "4.1.22",
69
- "@workflow/nuxt": "4.0.32",
70
- "@workflow/sveltekit": "4.0.31",
71
- "@workflow/rollup": "4.0.31"
66
+ "@workflow/next": "4.1.22",
67
+ "@workflow/nest": "4.0.34",
68
+ "@workflow/nitro": "4.1.24",
69
+ "@workflow/nuxt": "4.0.34",
70
+ "@workflow/sveltekit": "4.0.33",
71
+ "@workflow/rollup": "4.0.33"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@types/ms": "2.1.0",