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/get-started/guide.mdx
+17-9Lines changed: 17 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ To learn more about Workflows, read [the beta announcement blog](https://blog.cl
19
19
20
20
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
21
22
-
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](TODO) using your favorite email API.
22
+
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.
23
23
24
24
This guide will instruct you through:
25
25
@@ -183,7 +183,7 @@ We have a very basic Workflow definition, but now need to provide a way to call
183
183
1. External HTTP requests via a `fetch()` handler
184
184
2. Messages from a [Queue](/queues/)
185
185
3. A schedule via [Cron Trigger](/workers/configuration/cron-triggers/)
186
-
4. Via the [Workflows REST API](TODO) or [wrangler CLI](/workers/wrangler/commands/#workflows)
186
+
4. Via the [Workflows REST API](/api/paths/accounts-account_id--workflows/get) or [wrangler CLI](/workers/wrangler/commands/#workflows)
187
187
188
188
Return to the `src/index.ts` file we created in the previous step and add a `fetch` handler that _binds_ to our Workflow. This binding allows us to create new Workflow instances, fetch the status of an existing Workflow, pause and/or terminate a Workflow.
189
189
@@ -325,7 +325,15 @@ Deploying a Workflow is identical to deploying a Worker.
325
325
npx wrangler deploy
326
326
```
327
327
```sh output
328
-
TODO
328
+
# Note the "Workflows" binding mentioned here, showing that
329
+
# wrangler has detected your Workflow
330
+
Your worker has access to the following bindings:
331
+
- Workflows:
332
+
- MY_WORKFLOW: MyWorkflow (defined in workflows-starter)
333
+
Uploaded workflows-starter (2.53 sec)
334
+
Deployed workflows-starter triggers (1.12 sec)
335
+
https://workflows-starter.silverlock.workers.dev
336
+
workflow: workflows-starter
329
337
```
330
338
331
339
A Worker with a valid Workflow definition will be automatically registered by Workflows. You can list your current Workflows using wrangler:
@@ -334,12 +342,14 @@ A Worker with a valid Workflow definition will be automatically registered by Wo
0 commit comments