You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/workflows/build/workers-api.mdx
+2-8Lines changed: 2 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ When returning state from a `step`, ensure that the object you return is _serial
84
84
85
85
Primitive types like `string`, `number`, and `boolean`, along with composite structures such as `Array` and `Object` (provided they only contain serializable values), can be serialized.
86
86
87
-
Objects that include `Function` or `Symbol` types, and objects with circular references, cannot be serialized and the Workflow instance will throw an error if objects with those types is returned.
87
+
Objects that include `Function` or `Symbol` types, and objects with circular references, cannot be serialized and the Workflow instance will throw an error if objects with those types is returned.
88
88
89
89
:::
90
90
@@ -133,12 +133,6 @@ Refer to the [documentation on sleeping and retrying](/workflows/build/sleeping-
133
133
134
134
## Call Workflows from Workers
135
135
136
-
:::note[Workflows beta]
137
-
138
-
Workflows currently requires you to bind to a Workflow via the [Wrangler configuration file](/workers/wrangler/configuration/), and does not yet support bindings via the Workers dashboard.
139
-
140
-
:::
141
-
142
136
Workflows exposes an API directly to your Workers scripts via the [bindings](/workers/runtime-apis/bindings/#what-is-a-binding) concept. Bindings allow you to securely call a Workflow without having to manage API keys or clients.
143
137
144
138
You can bind to a Workflow by defining a `[[workflows]]` binding within your Wrangler configuration.
@@ -286,7 +280,7 @@ This is useful when you are scheduling multiple instances at once. A call to `cr
286
280
287
281
*`batch` - list of Options to pass when creating an instance, including a user-provided ID and payload parameters.
288
282
289
-
Each element of the `batch` list is expected to the
283
+
Each element of the `batch` list is expected to the
290
284
291
285
```ts
292
286
// Create a new batch of 3 Workflow instances, each with its own ID and pass params to the Workflow instances
Workflows is in **public beta**, and any developer with a [free or paid Workers plan](/workers/platform/pricing/#workers) can start using Workflows immediately.
15
-
16
-
To learn more about Workflows and how it works, read [the beta announcement blog](https://blog.cloudflare.com/building-workflows-durable-execution-on-workers).
17
-
18
-
:::
19
-
20
12
Workflows allow you to build durable, multi-step applications using the Workers platform. A Workflow can automatically retry, persist state, run for hours or days, and coordinate between third-party APIs.
21
13
22
14
You can build Workflows to post-process file uploads to [R2 object storage](/r2/), automate generation of [Workers AI](/workers-ai/) embeddings into a [Vectorize](/vectorize/) vector database, or to trigger user lifecycle emails using your favorite email API.
Workflows is in **public beta**, and any developer with a [free or paid Workers plan](/workers/platform/pricing/#workers) can start using Workflows immediately.
15
-
16
-
To learn more about Workflows and how it works, read [the beta announcement blog](https://blog.cloudflare.com/building-workflows-durable-execution-on-workers).
17
-
18
-
:::
19
-
20
12
Workflows allow you to build durable, multi-step applications using the Workers platform. A Workflow can automatically retry, persist state, run for hours or days, and coordinate between third-party APIs.
21
13
22
14
You can build Workflows to post-process file uploads to [R2 object storage](/r2/), automate generation of [Workers AI](/workers-ai/) embeddings into a [Vectorize](/vectorize/) vector database, or to trigger user lifecycle emails using your favorite email API.
| Maximum Workflow instance creation rate | 100 per 10 seconds [^6]| 100 per 10 seconds [^6]|
30
+
| Maximum number of [queued instances](/workflows/observability/metrics-analytics/#event-types)| 10,000 | 100,000 |
31
31
| Retention limit for completed Workflow state | 3 days | 30 days [^2]|
32
32
| Maximum length of a Workflow ID [^4]| 64 characters | 64 characters |
33
33
34
-
[^1]: This limit will be reviewed and revised during the open beta for Workflows. Follow the [Workflows changelog](/workflows/reference/changelog/) for updates.
35
-
36
34
[^2]: Workflow state and logs will be retained for 3 days on the Workers Free plan and for 7 days on the Workers Paid plan.
37
35
38
36
[^3]: A Workflow instance can run forever, as long as each step does not take more than the CPU time limit and the maximum number of steps per Workflow is not reached.
0 commit comments