From 38b38b393776839dfb09218f5818810c30a3bbcc Mon Sep 17 00:00:00 2001 From: Matt Silverlock Date: Thu, 24 Oct 2024 13:17:08 -0400 Subject: [PATCH 1/2] workflows: remove script_name --- src/content/docs/workflows/get-started/cli-quick-start.mdx | 3 --- src/content/docs/workflows/get-started/guide.mdx | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/content/docs/workflows/get-started/cli-quick-start.mdx b/src/content/docs/workflows/get-started/cli-quick-start.mdx index 57eb9160792d10a..6c36270f56debab 100644 --- a/src/content/docs/workflows/get-started/cli-quick-start.mdx +++ b/src/content/docs/workflows/get-started/cli-quick-start.mdx @@ -180,9 +180,6 @@ name = "workflows-starter" binding = "MY_WORKFLOW" # this is class that extends the Workflow class in src/index.ts class_name = "MyWorkflow" -# script_name is required during for the beta. -# Must match the "name" of your Worker at the top of wrangler.toml -script_name = "workflows-starter" ``` You can then invoke the methods on this binding directly from your Worker script's `env` parameter. The `Workflow` type has methods for: diff --git a/src/content/docs/workflows/get-started/guide.mdx b/src/content/docs/workflows/get-started/guide.mdx index d720c1278e2f9d2..1a33b43d591c402 100644 --- a/src/content/docs/workflows/get-started/guide.mdx +++ b/src/content/docs/workflows/get-started/guide.mdx @@ -198,9 +198,6 @@ name = "workflows-starter" binding = "MY_WORKFLOW" # this is class that extends the Workflow class in src/index.ts class_name = "MyWorkflow" -# script_name is required during the beta. -# Must match the "name" of your Worker at the top of wrangler.toml -script_name = "workflows-starter" ``` :::note From dc03774c568d30a978c123da1b0e339df78ecd33 Mon Sep 17 00:00:00 2001 From: Matt Silverlock Date: Thu, 24 Oct 2024 13:18:48 -0400 Subject: [PATCH 2/2] more --- src/content/docs/workflows/build/trigger-workflows.mdx | 3 --- src/content/docs/workflows/build/workers-api.mdx | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/content/docs/workflows/build/trigger-workflows.mdx b/src/content/docs/workflows/build/trigger-workflows.mdx index a4d562c3d4ec120..3dbf0b7790a5f44 100644 --- a/src/content/docs/workflows/build/trigger-workflows.mdx +++ b/src/content/docs/workflows/build/trigger-workflows.mdx @@ -43,9 +43,6 @@ name = "workflows-tutorial" # be how you call (run) your Workflow from your other Workers handlers or # scripts. binding = "MY_WORKFLOW" - # script_name is required during for the beta. - # Must match the "name" of your Worker at the top of wrangler.toml -script_name = "workflows-tutorial" # Must match the class defined in your code that extends the Workflow class class_name = "MyWorkflow" ``` diff --git a/src/content/docs/workflows/build/workers-api.mdx b/src/content/docs/workflows/build/workers-api.mdx index 5eafdb7d320d8c7..e0d1a98676aaf2a 100644 --- a/src/content/docs/workflows/build/workers-api.mdx +++ b/src/content/docs/workflows/build/workers-api.mdx @@ -120,9 +120,6 @@ name = "workflows-starter" binding = "MY_WORKFLOW" # this is class that extends the Workflow class in src/index.ts class_name = "MyWorkflow" -# script_name is required during for the beta. -# Must match the "name" of your Worker at the top of wrangler.toml -script_name = "workflows-starter" ``` ## Workflow