Skip to content

Commit 60125b2

Browse files
elithrarOxyjun
andauthored
Apply suggestions from code review
Co-authored-by: Jun Lee <[email protected]>
1 parent 0132f8c commit 60125b2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/content/docs/workflows/build/events-and-parameters.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ The above example:
9898
* Uses a TypeScript [type parameter](https://www.typescriptlang.org/docs/handbook/2/generics.html) to type the return value of `step.waitForEvent` as our `IncomingStripeWebhook`.
9999
* Continues on with the rest of the Workflow.
100100

101-
### Sending events to running workflows
101+
### Send events to running workflows
102102

103103
Workflow instances that are waiting on events using the `waitForEvent` API can be sent events using the `instance.sendEvent` API:
104104

@@ -124,7 +124,7 @@ export default {
124124

125125
</TypeScriptExample>
126126

127-
* Similar to the [`waitForEvent`](#wait-for-events) example in this guide, the `type` property our `waitForEvent` and `sendEvent` fields must match.
127+
* Similar to the [`waitForEvent`](#wait-for-events) example in this guide, the `type` property in our `waitForEvent` and `sendEvent` fields must match.
128128
* To send multiple events to a Workflow that has multiple `waitForEvent` calls, call `sendEvent` with the corresponding `type` property set.
129129
* Events can also be sent using the REST API (HTTP API)'s [Events endpoint](/api/resources/workflows/subresources/instances/subresources/events/methods/create/).
130130

src/content/docs/workflows/reference/pricing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Storage is billed using gigabyte-month (GB-month) as the billing metric, identic
4949
* Storage is calculated across all instances, and includes running, errored, sleeping and completed instances.
5050
* By default, instance state is retained for [3 days on the Free plan](/workflows/reference/limits/) and [7 days on the Paid plan](/workflows/reference/limits/).
5151
* When creating a Workflow instance, you can set a shorter state retention period if you do not need to retain state for errored or completed Workflows.
52-
* Deleting instances via the [Workers API](/workflows/build/workers-api/), [wrangler CLI](/workers/wrangler/commands/#workflows), REST API or dashboard will free up storage. Note that it may take a few minutes for storage limits to update.
52+
* Deleting instances via the [Workers API](/workflows/build/workers-api/), [Wrangler CLI](/workers/wrangler/commands/#workflows), REST API, or dashboard will free up storage. Note that it may take a few minutes for storage limits to update.
5353

5454
An instance that attempts to store state when your have reached the storage limit on the Free plan will cause an error to be thrown.
5555

0 commit comments

Comments
 (0)