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
@@ -162,9 +164,9 @@ When trying to decide whether to break code up into more than one step, a good r
162
164
163
165
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.
164
166
165
-
* Reading or writing files from R2
167
+
* Reading or writing files from [R2](/r2/)
166
168
* Running an AI task using [Workers AI](/workers-ai/)
167
-
* Querying a D1 database or a database via [Hyperdrive](/hyperdrive/)
169
+
* Querying a [D1 database](/d1/) or a database via [Hyperdrive](/hyperdrive/)
168
170
* Calling a third-party API
169
171
170
172
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.
@@ -187,7 +189,7 @@ Open the `wrangler.toml` file at the root of your `workflows-starter` folder, wh
187
189
#:schema node_modules/wrangler/config-schema.json
188
190
name = "workflows-starter"
189
191
main = "src/index.ts"
190
-
compatibility_date = "2024-10-23"
192
+
compatibility_date = "2024-10-22"
191
193
192
194
[[workflows]]
193
195
# name of your workflow
@@ -196,7 +198,7 @@ name = "workflows-starter"
196
198
binding = "MY_WORKFLOW"
197
199
# this is class that extends the Workflow class in src/index.ts
198
200
class_name = "MyWorkflow"
199
-
# script_name is required during for the beta.
201
+
# script_name is required during the beta.
200
202
# Must match the "name" of your Worker at the top of wrangler.toml
201
203
script_name = "workflows-starter"
202
204
```
@@ -374,7 +376,7 @@ Your worker has access to the following bindings:
374
376
- MY_WORKFLOW: MyWorkflow (defined in workflows-starter)
0 commit comments