Skip to content

Commit 925dd82

Browse files
committed
edits
1 parent 336d863 commit 925dd82

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/content/docs/workflows/build/workers-api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Refer to the [events and parameters](/workflows/build/events-and-parameters/) do
5555
* <code>step.do(name: string, config?: WorkflowStepConfig, callback: (): RpcSerializable): Promise&lt;T&gt;</code>
5656

5757
* `name` - the name of the step.
58-
* `config` (optional) - an optional `WorkflowStepConfig` for configuring [step specific retry behaviour](/workflows/build/sleeping-and-retrying/)
58+
* `config` (optional) - an optional `WorkflowStepConfig` for configuring [step specific retry behaviour](/workflows/build/sleeping-and-retrying/).
5959
* `callback` - an asynchronous function that optionally returns serializable state for the Workflow to persist.
6060

6161
* <code>step.sleep(name: string, duration: WorkflowDuration): Promise&lt;void&gt;</code>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Open the `src/index.ts` file in your text editor. This file contains the followi
4747

4848
```ts title="src/index.ts"
4949
// Import the Workflow definition
50-
import { WorkflowEntrypoint, WorkflowEvent, WorkflowStep } from "cloudflare:workflows"
50+
import { WorkflowEntrypoint, WorkflowEvent, WorkflowStep } from "cloudflare:workers"
5151

5252
// Create your own class that implements a Workflow
5353
export class MyWorkflow implements WorkflowEntrypoint {
@@ -60,7 +60,7 @@ export class MyWorkflow implements WorkflowEntrypoint {
6060

6161
await step.sleep('wait on something', '1 minute');
6262

63-
await await step.do(
63+
await step.do(
6464
'make a call to write that could maybe, just might, fail',
6565
async () => {
6666
// Do stuff here, with access to 'state' from the previous step
@@ -97,7 +97,7 @@ At its most basic, a step looks like this:
9797

9898
```ts title="src/index.ts"
9999
// Import the Workflow definition
100-
import { WorkflowEntrypoint, WorkflowEvent, WorkflowStep } from "cloudflare:workflows"
100+
import { WorkflowEntrypoint, WorkflowEvent, WorkflowStep } from "cloudflare:workers"
101101

102102
// Create your own class that implements a Workflow
103103
export class MyWorkflow implements WorkflowEntrypoint {

src/content/docs/workflows/observability/metrics-analytics.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The metrics displayed in the [Cloudflare dashboard](https://dash.cloudflare.com/
1212

1313
## Metrics
1414

15-
Workflows currently export the below metrics within the `workflowsAdaptiveGroups` GraphQL dataset
15+
Workflows currently export the below metrics within the `workflowsAdaptiveGroups` GraphQL dataset.
1616

1717
| Metric | GraphQL Field Name | Description |
1818
| ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
@@ -46,7 +46,7 @@ The possible values for `eventType` are documented below:
4646
* `WORKFLOW_QUEUED` - the Workflow is queued, but not currently running. This can happen when you are at the [concurrency limit](/workflows/reference/limits/) and new instances are waiting for currently running instances to complete.
4747
* `WORKFLOW_START` - the Workflow has started and is running.
4848
* `WORKFLOW_SUCCESS` - the Workflow finished without errors.
49-
* `WORKFLOW_FAILURE` - the Workflow failed due to errors (exhausting retries, errors thrown, etc)
49+
* `WORKFLOW_FAILURE` - the Workflow failed due to errors (exhausting retries, errors thrown, etc).
5050
* `WORKFLOW_TERMINATED` - the Workflow was explicitly terminated.
5151

5252
#### Step-level status labels

0 commit comments

Comments
 (0)