workflow 5.7.0 → 5.7.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/internal/errors.d.ts +1 -1
- package/dist/internal/errors.js +2 -2
- package/docs/advanced/dynamic-workflows.mdx +2 -2
- package/docs/api-reference/workflow-api/start.mdx +1 -1
- package/docs/api-reference/workflow-errors/dynamic-workflows-not-enabled-error.mdx +57 -0
- package/docs/api-reference/workflow-errors/index.mdx +3 -0
- package/docs/api-reference/workflow-errors/meta.json +1 -0
- package/docs/configuration/cli-and-web-ui.mdx +1 -1
- package/docs/configuration/worlds.mdx +9 -0
- package/docs/errors/index.mdx +1 -1
- package/docs/getting-started/nestjs.mdx +5 -3
- package/docs/worlds/postgres.mdx +13 -1
- package/docs/worlds/vercel.mdx +2 -0
- package/package.json +11 -11
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { EntityConflictError, HookConflictError, HookForceClaimedError, HookNotFoundError, InBandSupersededError, PreconditionFailedError, RunExpiredError, RunNotSupportedError, StepNotRegisteredError, StreamError, ThrottleError, TooEarlyError, WorkflowError, WorkflowNotRegisteredError, WorkflowRunCancelledError, WorkflowRunFailedError, WorkflowRunNotCompletedError, WorkflowRunNotFoundError, WorkflowRuntimeError, WorkflowStartError, WorkflowWorldError, } from '@workflow/errors';
|
|
1
|
+
export { DynamicWorkflowsNotEnabledError, EntityConflictError, HookConflictError, HookForceClaimedError, HookNotFoundError, InBandSupersededError, PreconditionFailedError, RunExpiredError, RunNotSupportedError, StepNotRegisteredError, StreamError, ThrottleError, TooEarlyError, WorkflowError, WorkflowNotRegisteredError, WorkflowRunCancelledError, WorkflowRunFailedError, WorkflowRunNotCompletedError, WorkflowRunNotFoundError, WorkflowRuntimeError, WorkflowStartError, WorkflowWorldError, } from '@workflow/errors';
|
|
2
2
|
//# sourceMappingURL=errors.d.ts.map
|
package/dist/internal/errors.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { EntityConflictError, HookConflictError, HookForceClaimedError, HookNotFoundError, InBandSupersededError, PreconditionFailedError, RunExpiredError, RunNotSupportedError, StepNotRegisteredError, StreamError, ThrottleError, TooEarlyError, WorkflowError, WorkflowNotRegisteredError, WorkflowRunCancelledError, WorkflowRunFailedError, WorkflowRunNotCompletedError, WorkflowRunNotFoundError, WorkflowRuntimeError, WorkflowStartError, WorkflowWorldError, } from '@workflow/errors';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export { DynamicWorkflowsNotEnabledError, EntityConflictError, HookConflictError, HookForceClaimedError, HookNotFoundError, InBandSupersededError, PreconditionFailedError, RunExpiredError, RunNotSupportedError, StepNotRegisteredError, StreamError, ThrottleError, TooEarlyError, WorkflowError, WorkflowNotRegisteredError, WorkflowRunCancelledError, WorkflowRunFailedError, WorkflowRunNotCompletedError, WorkflowRunNotFoundError, WorkflowRuntimeError, WorkflowStartError, WorkflowWorldError, } from '@workflow/errors';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3JzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2ludGVybmFsL2Vycm9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsK0JBQStCLEVBQy9CLG1CQUFtQixFQUNuQixpQkFBaUIsRUFDakIscUJBQXFCLEVBQ3JCLGlCQUFpQixFQUNqQixxQkFBcUIsRUFDckIsdUJBQXVCLEVBQ3ZCLGVBQWUsRUFDZixvQkFBb0IsRUFDcEIsc0JBQXNCLEVBQ3RCLFdBQVcsRUFDWCxhQUFhLEVBQ2IsYUFBYSxFQUNiLGFBQWEsRUFDYiwwQkFBMEIsRUFDMUIseUJBQXlCLEVBQ3pCLHNCQUFzQixFQUN0Qiw0QkFBNEIsRUFDNUIsd0JBQXdCLEVBQ3hCLG9CQUFvQixFQUNwQixrQkFBa0IsRUFDbEIsa0JBQWtCLEdBQ25CLE1BQU0sa0JBQWtCLENBQUMifQ==
|
|
@@ -73,8 +73,8 @@ WORKFLOW_EXPERIMENTAL_DYNAMIC_WORKFLOWS=1
|
|
|
73
73
|
|
|
74
74
|
Only `1` or `true` (case-insensitive) enables them; any other value, or no value, leaves them off. The runtime reads the variable where workflows execute, when it needs it, so set it on the deployment or dev server rather than at build time. It controls three things:
|
|
75
75
|
|
|
76
|
-
- **Starting.** `start()` with source throws before it contacts the World, creates a run, or enqueues anything unless this process has opted in.
|
|
77
|
-
- **Delivery.** When a dynamic run reaches a deployment that has not opted in, the runtime does not execute its stored code. It fails the run with a `
|
|
76
|
+
- **Starting.** `start()` with source throws [`DynamicWorkflowsNotEnabledError`](/docs/api-reference/workflow-errors/dynamic-workflows-not-enabled-error) before it contacts the World, creates a run, or enqueues anything unless this process has opted in. The error is fatal, so a step that calls `start()` fails without retrying, and a run that fails on it is recorded as `USER_ERROR`.
|
|
77
|
+
- **Delivery.** When a dynamic run reaches a deployment that has not opted in, the runtime does not execute its stored code. It fails the run with `DynamicWorkflowsNotEnabledError` and a `USER_ERROR` code rather than retrying it.
|
|
78
78
|
- **Health check.** A deployment advertises dynamic support in its [health check](/docs/api-reference/workflow-runtime/health-check) only when it has opted in.
|
|
79
79
|
|
|
80
80
|
### Same deployment only
|
|
@@ -268,6 +268,6 @@ async function workflow(input) {
|
|
|
268
268
|
|
|
269
269
|
The return type is `Run<unknown>`: the source's shape is only known to whatever generated it, so there is nothing to infer. The workflow ID is derived from the source and its step bindings — it cannot be supplied.
|
|
270
270
|
|
|
271
|
-
A dynamic start throws
|
|
271
|
+
A dynamic start throws before anything is written when the deployment has not opted in ([`DynamicWorkflowsNotEnabledError`](/docs/api-reference/workflow-errors/dynamic-workflows-not-enabled-error)), and a `WorkflowRuntimeError` when `deploymentId` targets another deployment (including `'latest'` resolving to one) or when the World's backend does not support dynamic-source storage. Earlier releases threw `WorkflowRuntimeError` for the opt-in refusal too, so code that checked for it with `WorkflowRuntimeError.is()` should use `DynamicWorkflowsNotEnabledError.is()`.
|
|
272
272
|
|
|
273
273
|
See [Dynamic Workflows](/docs/advanced/dynamic-workflows) for the opt-in, the source rules and limits, the predefined runtime bindings (`steps`, `sleep`, `createHook`), how the code is stored, and the security model.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: DynamicWorkflowsNotEnabledError
|
|
3
|
+
description: Thrown when a dynamic workflow is started or delivered on a deployment that has not enabled dynamic workflows.
|
|
4
|
+
type: reference
|
|
5
|
+
summary: Catch DynamicWorkflowsNotEnabledError when start() is given workflow source on a deployment without WORKFLOW_EXPERIMENTAL_DYNAMIC_WORKFLOWS=1.
|
|
6
|
+
related:
|
|
7
|
+
- /docs/advanced/dynamic-workflows
|
|
8
|
+
- /docs/api-reference/workflow-api/start
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
`DynamicWorkflowsNotEnabledError` is thrown when your project has not enabled [dynamic workflows](/docs/advanced/dynamic-workflows):
|
|
12
|
+
|
|
13
|
+
- `start()` is given workflow source on a deployment that has not opted in. No run is created.
|
|
14
|
+
- A dynamic run is delivered to a deployment that has not opted in. Its stored code is not executed, and the run fails.
|
|
15
|
+
|
|
16
|
+
This is a configuration problem in your project, not an SDK error, so a run that fails on it is recorded with the `USER_ERROR` code. The error is fatal: a step that calls `start()` fails on the first attempt instead of retrying.
|
|
17
|
+
|
|
18
|
+
To fix it, set the `WORKFLOW_EXPERIMENTAL_DYNAMIC_WORKFLOWS=1` environment variable on your project, then redeploy (or restart your dev server) so the new value takes effect. See [Enabling dynamic workflows](/docs/advanced/dynamic-workflows#enabling-dynamic-workflows).
|
|
19
|
+
|
|
20
|
+
```typescript lineNumbers
|
|
21
|
+
import { DynamicWorkflowsNotEnabledError } from "workflow/errors"
|
|
22
|
+
declare const error: unknown; // @setup
|
|
23
|
+
|
|
24
|
+
if (DynamicWorkflowsNotEnabledError.is(error)) { // [!code highlight]
|
|
25
|
+
console.error("Dynamic workflows are not enabled:", error.message);
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## API signature
|
|
30
|
+
|
|
31
|
+
### Properties
|
|
32
|
+
|
|
33
|
+
<TSDoc
|
|
34
|
+
definition={`
|
|
35
|
+
interface DynamicWorkflowsNotEnabledError {
|
|
36
|
+
/** Always true: retrying cannot succeed until the project opts in. */
|
|
37
|
+
fatal: true;
|
|
38
|
+
/** The error message, including how to enable dynamic workflows. */
|
|
39
|
+
message: string;
|
|
40
|
+
}
|
|
41
|
+
export default DynamicWorkflowsNotEnabledError;`}
|
|
42
|
+
/>
|
|
43
|
+
|
|
44
|
+
### Static methods
|
|
45
|
+
|
|
46
|
+
#### `DynamicWorkflowsNotEnabledError.is(value)`
|
|
47
|
+
|
|
48
|
+
Type-safe check for `DynamicWorkflowsNotEnabledError` instances. Preferred over `instanceof` because it works across module boundaries and virtual machine contexts.
|
|
49
|
+
|
|
50
|
+
```typescript
|
|
51
|
+
import { DynamicWorkflowsNotEnabledError } from "workflow/errors"
|
|
52
|
+
declare const error: unknown; // @setup
|
|
53
|
+
|
|
54
|
+
if (DynamicWorkflowsNotEnabledError.is(error)) {
|
|
55
|
+
// error is typed as DynamicWorkflowsNotEnabledError
|
|
56
|
+
}
|
|
57
|
+
```
|
|
@@ -54,6 +54,9 @@ All errors extend [`WorkflowError`](/docs/api-reference/workflow-errors/workflow
|
|
|
54
54
|
<Card href="/docs/api-reference/workflow-errors/workflow-start-error" title="WorkflowStartError">
|
|
55
55
|
Thrown when `start({ experimental_hook })` cannot confirm whether its run was queued or admitted.
|
|
56
56
|
</Card>
|
|
57
|
+
<Card href="/docs/api-reference/workflow-errors/dynamic-workflows-not-enabled-error" title="DynamicWorkflowsNotEnabledError">
|
|
58
|
+
Thrown when a dynamic workflow is started or delivered on a deployment that has not enabled dynamic workflows.
|
|
59
|
+
</Card>
|
|
57
60
|
<Card href="/docs/api-reference/workflow-errors/run-expired-error" title="RunExpiredError">
|
|
58
61
|
Thrown when a workflow run has expired and can no longer be operated on.
|
|
59
62
|
</Card>
|
|
@@ -216,7 +216,7 @@ per flag.
|
|
|
216
216
|
|
|
217
217
|
## Delete
|
|
218
218
|
|
|
219
|
-
`workflow delete <runId>...` deletes the stored data of finished runs: their inputs, outputs and errors, their steps' and events' payloads, their hook payloads, and their stream contents. Metadata is not deleted: the runs, steps, events and hooks stay listed with their IDs, names, statuses, timestamps and attributes, and only the payloads read back as expired. This cannot be undone, so the command asks for confirmation unless you pass [`--confirm` / `-y`](#--confirm---y), and aborts without a terminal to ask on.
|
|
219
|
+
`workflow delete <runId>...` deletes the stored data of finished runs: their inputs, outputs and errors, their steps' and events' payloads, their hook payloads, and their stream contents. Metadata is not deleted: the runs, steps, events and hooks stay listed with their IDs, names, statuses, timestamps and attributes, and only the payloads read back as expired. This cannot be undone, so the command asks for confirmation unless you pass [`--confirm` / `-y`](#--confirm---y), and aborts without a terminal to ask on. The local [Web UI](#web-ui) doesn't offer it. For runs on Vercel, you can also delete run data from the [Vercel dashboard](https://vercel.com/docs/workflows/retention#delete-the-data-of-finished-runs).
|
|
220
220
|
|
|
221
221
|
```bash
|
|
222
222
|
pnpx workflow delete <runId>
|
|
@@ -185,6 +185,15 @@ The Postgres World is a self-hosted durable backend for long-running server proc
|
|
|
185
185
|
- Set to `true` only when the application awaits `world.close()` before closing its workflow HTTP server and caller-owned pool.
|
|
186
186
|
- Prevents Graphile Worker's default handler from terminating the process before the application's remaining cleanup finishes.
|
|
187
187
|
|
|
188
|
+
### `skipWorkers`
|
|
189
|
+
|
|
190
|
+
- Environment variable: `WORKFLOW_POSTGRES_SKIP_WORKERS` (`1` enables)
|
|
191
|
+
- Default: `false`
|
|
192
|
+
- Runs no workers in this process. It can still start runs, resume hooks, cancel runs and read them, but it claims none of the jobs those create and doesn't recover interrupted runs at startup.
|
|
193
|
+
- At least one process with workers must share the database, `jobPrefix` and, when one is set, `deploymentId`: it executes those runs. A run on a deployment ID no worker claims stays pending.
|
|
194
|
+
- A run this process created but didn't get to enqueue (it stopped in between) is recovered the next time a process with workers starts.
|
|
195
|
+
- Use it for processes that should send work but not execute it, such as those in a region far from the database. See [Postgres World: `WORKFLOW_POSTGRES_SKIP_WORKERS`](/worlds/postgres#workflow_postgres_skip_workers).
|
|
196
|
+
|
|
188
197
|
### `jobLockStaleSeconds`
|
|
189
198
|
|
|
190
199
|
- Environment variable: `WORKFLOW_POSTGRES_JOB_LOCK_STALE_SECONDS`
|
package/docs/errors/index.mdx
CHANGED
|
@@ -15,7 +15,7 @@ When a workflow run fails, its `errorCode` identifies the failure category. You
|
|
|
15
15
|
|
|
16
16
|
| Code | Description |
|
|
17
17
|
| --- | --- |
|
|
18
|
-
| `USER_ERROR` | An error thrown by workflow or step code, including an unhandled step failure or `FatalError
|
|
18
|
+
| `USER_ERROR` | An error thrown by workflow or step code, including an unhandled step failure or `FatalError`, or a project configuration problem such as [`DynamicWorkflowsNotEnabledError`](/docs/api-reference/workflow-errors/dynamic-workflows-not-enabled-error). |
|
|
19
19
|
| `RUNTIME_ERROR` | The Workflow runtime encountered an internal error, such as missing runtime data or an invariant failure. Persistent occurrences should be [reported](https://github.com/vercel/workflow/issues). |
|
|
20
20
|
| [`CORRUPTED_EVENT_LOG`](/docs/errors/corrupted-event-log) | The run's event log cannot be replayed because it contains orphaned or mismatched events, a gap, or an unreadable stored payload. |
|
|
21
21
|
| [`REPLAY_DIVERGENCE`](/docs/errors/replay-divergence) | One replay could not consume the event log deterministically. The runtime automatically retries before treating repeated divergence as a corrupted event log. |
|
|
@@ -10,7 +10,7 @@ related:
|
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
<CopyPrompt
|
|
13
|
-
text="In this NestJS app, run `npm i workflow @workflow/nest` and `npm i -D @swc/cli @swc/core`. Configure `nest-cli.json` with `compilerOptions.builder: "swc"` and `deleteOutDir: true`. Run `npx @workflow/nest init`, add `.swcrc` to `.gitignore`, and set package scripts `prebuild: "npx @workflow/nest init --force"` and `start:dev: "npx @workflow/nest init --force && nest start --watch"`. Import `WorkflowModule.forRoot()` from `@workflow/nest` in `src/app.module.ts` (use `{ moduleType: "commonjs", distDir: "dist" }` if compiling CommonJS). Create `src/workflows/user-signup.ts` with `"use workflow"`, `sleep`, and `"use step"` helpers. Add a `POST /signup` controller method that reads `email`, calls `start(handleUserSignup, [email])` from `workflow/api`, and returns JSON. Run `npm run start:dev`, call `curl -X POST --json '{"email":"hello@example.com"}' http://localhost:3000/signup`, and inspect with `npx workflow web` or `npx workflow inspect runs`."
|
|
13
|
+
text="In this NestJS app, run `npm i workflow @workflow/nest` and `npm i -D @swc/cli @swc/core@~1.15.18`. Configure `nest-cli.json` with `compilerOptions.builder: "swc"` and `deleteOutDir: true`. Run `npx @workflow/nest init`, add `.swcrc` to `.gitignore`, and set package scripts `prebuild: "npx @workflow/nest init --force"` and `start:dev: "npx @workflow/nest init --force && nest start --watch"`. Import `WorkflowModule.forRoot()` from `@workflow/nest` in `src/app.module.ts` (use `{ moduleType: "commonjs", distDir: "dist" }` if compiling CommonJS). Create `src/workflows/user-signup.ts` with `"use workflow"`, `sleep`, and `"use step"` helpers. Add a `POST /signup` controller method that reads `email`, calls `start(handleUserSignup, [email])` from `workflow/api`, and returns JSON. Run `npm run start:dev`, call `curl -X POST --json '{"email":"hello@example.com"}' http://localhost:3000/signup`, and inspect with `npx workflow web` or `npx workflow inspect runs`."
|
|
14
14
|
/>
|
|
15
15
|
|
|
16
16
|
Set up your first durable workflow in a NestJS app and learn the core Workflow SDK concepts.
|
|
@@ -92,12 +92,14 @@ export class AppModule {}
|
|
|
92
92
|
|
|
93
93
|
NestJS supports SWC as an alternative compiler for faster builds. The Workflow SDK uses an SWC plugin to transform workflow files.
|
|
94
94
|
|
|
95
|
-
Install the required SWC packages:
|
|
95
|
+
Install the required SWC packages. `@swc/core` is pinned to 1.15.x because the Workflow SWC plugin does not run on `@swc/core` 1.16 yet:
|
|
96
96
|
|
|
97
97
|
```package-install
|
|
98
|
-
npm i -D @swc/cli @swc/core
|
|
98
|
+
npm i -D @swc/cli @swc/core@~1.15.18
|
|
99
99
|
```
|
|
100
100
|
|
|
101
|
+
Don't upgrade `@swc/core` past 1.15 (for example with `pnpm update --latest`, Dependabot or Renovate) until the Workflow SWC plugin supports 1.16; `npx @workflow/nest init` warns if the installed version isn't 1.15.x.
|
|
102
|
+
|
|
101
103
|
Ensure your `nest-cli.json` has SWC as the builder:
|
|
102
104
|
|
|
103
105
|
```json title="nest-cli.json" lineNumbers
|
package/docs/worlds/postgres.mdx
CHANGED
|
@@ -226,7 +226,7 @@ The package includes a Helm chart for Kubernetes in its `chart` directory, and t
|
|
|
226
226
|
|
|
227
227
|
- **Workers per version.** Each release gets a worker Deployment that runs only the runs it started. A rollout leaves the previous release's workers in place.
|
|
228
228
|
- **Scale to zero.** KEDA scales each version's workers on its due deliveries, which the application reports through `createBacklogEndpoints`. Workers drop to zero while that version's runs sleep or wait on a hook.
|
|
229
|
-
- **Pruning.** A CronJob deletes a version's workers once all its runs have finished, and recreates them for a version that still has unfinished runs.
|
|
229
|
+
- **Pruning.** A CronJob deletes a version's workers once all its runs have finished, and recreates them for a version that still has unfinished runs. A run with `experimental_retention: 0` counts as unfinished until its data deletion is confirmed, about a minute after it ends.
|
|
230
230
|
- **Graceful shutdown.** `createLifecycle` stops a pod from receiving traffic, then lets its running deliveries finish before it exits.
|
|
231
231
|
- **Migrations.** An optional init container runs `bootstrap` before each pod starts.
|
|
232
232
|
|
|
@@ -309,6 +309,7 @@ The defaults work for a single process on a local database, so most apps set onl
|
|
|
309
309
|
| [`WORKFLOW_POSTGRES_POLL_INTERVAL_MS`](#workflow_postgres_poll_interval_ms) | `500` ms | Idle job polling |
|
|
310
310
|
| [`WORKFLOW_POSTGRES_MAX_POOL_SIZE`](#workflow_postgres_max_pool_size) | `10` | Connection pool size |
|
|
311
311
|
| [`WORKFLOW_POSTGRES_APPLICATION_MANAGED_SHUTDOWN`](#workflow_postgres_application_managed_shutdown) | off | Who coordinates shutdown |
|
|
312
|
+
| [`WORKFLOW_POSTGRES_SKIP_WORKERS`](#workflow_postgres_skip_workers) | off | Send work without executing it |
|
|
312
313
|
| [`WORKFLOW_POSTGRES_HEADERS_TIMEOUT_MS`](#workflow_postgres_headers_timeout_ms) | `0` ms (no deadline) | Hung delivery detection |
|
|
313
314
|
| [`WORKFLOW_POSTGRES_BODY_TIMEOUT_MS`](#workflow_postgres_body_timeout_ms) | `0` ms (no deadline) | Stalled response detection |
|
|
314
315
|
| [`WORKFLOW_POSTGRES_JOB_LOCK_STALE_SECONDS`](#workflow_postgres_job_lock_stale_seconds) | unset: 300 s for spec 9 run-lease jobs only | Redelivery after a process dies |
|
|
@@ -403,6 +404,17 @@ Whether the application, instead of Graphile Worker, coordinates shutdown. Set t
|
|
|
403
404
|
|
|
404
405
|
Change it when: the application or framework coordinates shutdown and awaits `world.close()` before closing its workflow HTTP server and any caller-owned pool. See [Application-managed shutdown](#application-managed-shutdown).
|
|
405
406
|
|
|
407
|
+
### `WORKFLOW_POSTGRES_SKIP_WORKERS`
|
|
408
|
+
|
|
409
|
+
- Default: unset (`false`)
|
|
410
|
+
- Factory option: `skipWorkers`
|
|
411
|
+
|
|
412
|
+
Runs no workers in this process. Set to `1` to enable. The process can still start runs, resume hooks, cancel runs and read them, but it claims none of the jobs those create, and it doesn't recover interrupted runs at startup.
|
|
413
|
+
|
|
414
|
+
Its runs execute on processes with workers on the same database, `WORKFLOW_POSTGRES_JOB_PREFIX` and, when one is set, `WORKFLOW_POSTGRES_DEPLOYMENT_ID`, so at least one must be running. A run on a deployment ID that no worker claims stays pending. A run this process created but didn't get to enqueue (it stopped in between) is recovered the next time a process with workers starts. At startup the process logs the job prefix and deployment ID its runs need.
|
|
415
|
+
|
|
416
|
+
Change it when: some processes should send work without executing it, for example application instances in a region far from the database, whose step executions would wait on many cross-region round trips. Run the workers near the database.
|
|
417
|
+
|
|
406
418
|
### `WORKFLOW_POSTGRES_HEADERS_TIMEOUT_MS`
|
|
407
419
|
|
|
408
420
|
- Default: `0` (no deadline)
|
package/docs/worlds/vercel.mdx
CHANGED
|
@@ -137,6 +137,8 @@ Retention for the Vercel World is documented in the [Vercel Workflows docs](http
|
|
|
137
137
|
|
|
138
138
|
To delete a run's payloads as soon as it finishes, start it with [`experimental_retention: 0`](/docs/observability/retention).
|
|
139
139
|
|
|
140
|
+
To delete the payloads of runs that have already finished, call [`run.delete()`](/docs/api-reference/workflow-api/get-run#delete-a-finished-runs-data) or [`deleteRuns()`](/docs/api-reference/workflow-api/delete-runs), run [`workflow delete`](/docs/configuration/cli-and-web-ui#delete), or select **Delete Data** in the Vercel dashboard.
|
|
141
|
+
|
|
140
142
|
## Queue consumers other than the Workflow SDK
|
|
141
143
|
|
|
142
144
|
The Vercel World delivers each queue message to the functions subscribed to its topic, not to a fixed path. The Workflow SDK's build integration subscribes the generated flow route to `__wkf_workflow_*` (or `__{namespace}_wkf_workflow_*`). A library that consumes messages of its own on the same World, such as a durable agent harness, uses its own queue prefix and subscribes its own route to that prefix's topics:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "workflow",
|
|
3
|
-
"version": "5.7.
|
|
3
|
+
"version": "5.7.1",
|
|
4
4
|
"description": "Workflow SDK - Build durable, resilient, and observable workflows",
|
|
5
5
|
"main": "dist/typescript-plugin.cjs",
|
|
6
6
|
"type": "module",
|
|
@@ -60,19 +60,19 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@workflow/astro": "5.0.
|
|
64
|
-
"@workflow/cli": "5.3.
|
|
65
|
-
"@workflow/core": "5.7.
|
|
66
|
-
"@workflow/errors": "5.1.
|
|
63
|
+
"@workflow/astro": "5.0.13",
|
|
64
|
+
"@workflow/cli": "5.3.1",
|
|
65
|
+
"@workflow/core": "5.7.1",
|
|
66
|
+
"@workflow/errors": "5.1.5",
|
|
67
67
|
"@workflow/typescript-plugin": "5.0.1",
|
|
68
68
|
"@workflow/utils": "5.1.1",
|
|
69
69
|
"ms": "2.1.3",
|
|
70
|
-
"@workflow/next": "5.1.
|
|
71
|
-
"@workflow/nest": "5.1.
|
|
72
|
-
"@workflow/nitro": "5.0.
|
|
73
|
-
"@workflow/nuxt": "5.0.
|
|
74
|
-
"@workflow/sveltekit": "5.0.
|
|
75
|
-
"@workflow/rollup": "5.0.
|
|
70
|
+
"@workflow/next": "5.1.4",
|
|
71
|
+
"@workflow/nest": "5.1.11",
|
|
72
|
+
"@workflow/nitro": "5.0.13",
|
|
73
|
+
"@workflow/nuxt": "5.0.13",
|
|
74
|
+
"@workflow/sveltekit": "5.0.13",
|
|
75
|
+
"@workflow/rollup": "5.0.13"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@types/ms": "2.1.0",
|