Skip to content

Commit 68cdf99

Browse files
markdemboharshil1712
authored andcommitted
[Workflows] Nits (#17758)
* Add hyperlinks * Fix language error * Replace silverlock with generic * Make params match the example types from section above
1 parent f9a9054 commit 68cdf99

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/content/docs/workflows/get-started/cli-quick-start.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ You can run a Workflow via the `wrangler` CLI, via a Worker binding, or via the
161161

162162
```sh
163163
# Trigger a Workflow from the CLI, and pass (optional) parameters as an event to the Workflow.
164-
npx wrangler@latest workflows trigger workflows-tutorial --params={"hello":"world"}
164+
npx wrangler@latest workflows trigger workflows-tutorial --params={"email": "[email protected]", "metadata": {"id": "1"}}
165165
```
166166

167167
Refer to the [events and parameters documentation](/workflows/build/events-and-parameters/) to understand how events are passed to Workflows.

src/content/docs/workflows/get-started/guide.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ When trying to decide whether to break code up into more than one step, a good r
129129

130130
For example, each of the below tasks is ideally encapsulated in its own step, so that any failure — such as a file not existing, a third-party API being down or rate limited — does not cause your entire program to fail.
131131

132-
* Reading or writing files from R2
132+
* Reading or writing files from [R2](/r2/)
133133
* Running an AI task using [Workers AI](/workers-ai/)
134-
* Querying a D1 database or a database via [Hyperdrive](/hyperdrive/)
134+
* Querying a [D1 database](/d1/) or a database via [Hyperdrive](/hyperdrive/)
135135
* Calling a third-party API
136136

137137
If a subsequent step fails, your Workflow can retry from that step, using any state returned from a previous step. This can also help you avoid unnecessarily querying a database or calling an paid API repeatedly for data you have already fetched.
@@ -163,7 +163,7 @@ name = "workflows-starter"
163163
binding = "MY_WORKFLOW"
164164
# this is class that extends the Workflow class in src/index.ts
165165
class_name = "MyWorkflow"
166-
# script_name is required during for the beta.
166+
# script_name is required during the beta.
167167
# Must match the "name" of your Worker at the top of wrangler.toml
168168
script_name = "workflows-starter"
169169
```
@@ -332,7 +332,7 @@ Your worker has access to the following bindings:
332332
- MY_WORKFLOW: MyWorkflow (defined in workflows-starter)
333333
Uploaded workflows-starter (2.53 sec)
334334
Deployed workflows-starter triggers (1.12 sec)
335-
https://workflows-starter.silverlock.workers.dev
335+
https://workflows-starter.YOUR_WORKERS_SUBDOMAIN.workers.dev
336336
workflow: workflows-starter
337337
```
338338

0 commit comments

Comments
 (0)