Skip to content

Commit f4829b1

Browse files
ToriLindsayOxyjun
andauthored
Update src/content/docs/workflows/examples/backup-d1.mdx
Co-authored-by: Jun Lee <[email protected]>
1 parent 478f9e0 commit f4829b1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/content/docs/workflows/examples/backup-d1.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ In this example, we implement a Workflow periodically triggered by a [Cron Trigg
2121

2222
When the Workflow is triggered, it fetches the REST API to initiate an export job for a specific database. Then it fetches the same endpoint to check if the backup job is ready and the SQL dump is available to download.
2323

24-
As shown in this example, Workflows handles both the responses and failures, so the developer does not have to. Workflows retries the API calls until it gets a successful response, retries fetching the backup from the URL provided, and then retries saving the file to [R2](/r2). The workflow can run until the backup file is ready, handling all of the possible conditions until it is completed.
24+
As shown in this example, Workflows handles both the responses and failures, thereby removing the burden from the developer. Workflows retries the following steps:
25+
26+
- API calls until it gets a successful response
27+
- Fetching the backup from the URL provided
28+
- Saving the file to [R2](/r2)
29+
30+
The Workflow can run until the backup file is ready, handling all of the possible conditions until it is completed.
2531

2632
This example provides simplified steps for backing up a [D1](/d1) database to help you understand the possibilities of Workflows. In every step, it uses the [default](/workflows/build/sleeping-and-retrying) sleeping and retrying configuration. In a real-world scenario, more steps and additional logic would likely be needed.
2733

0 commit comments

Comments
 (0)