From 05120f706b403b7432fdf90ad124adb951929f71 Mon Sep 17 00:00:00 2001 From: g Date: Sun, 4 Feb 2024 18:27:29 -0500 Subject: [PATCH] fix: drop pythonic speak --- frontend/docs/pages/home/typescript-sdk/creating-a-workflow.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/docs/pages/home/typescript-sdk/creating-a-workflow.mdx b/frontend/docs/pages/home/typescript-sdk/creating-a-workflow.mdx index a85438b5b..982f5458b 100644 --- a/frontend/docs/pages/home/typescript-sdk/creating-a-workflow.mdx +++ b/frontend/docs/pages/home/typescript-sdk/creating-a-workflow.mdx @@ -136,7 +136,7 @@ const workflow: Workflow = { > \***\*Note:** this feature is currently in beta, and currently only supports a concurrency strategy which terminates the oldest running workflow run to make room for the new one. This will be expanded in the future to support other strategies.\*\* -By default, there are no concurrency limits for Hatchet workflows. Workflow runs are immediately executed as soon as they are triggered (by an event, cron, or schedule). However, you can enforce a concurrency limit by decorating a custom function with `hatchet.concurrency`. This function returns a **concurrency group key**, which is a string that is used to group concurrent executions. **Note that this function should not also be used as a `hatchet.step`.** For example, the following workflow will only allow 5 concurrent executions for any workflow execution of `ConcurrencyDemoWorkflow`, since the key is statically set to `concurrency-key`: +By default, there are no concurrency limits for Hatchet workflows. Workflow runs are immediately executed as soon as they are triggered (by an event, cron, or schedule). However, you can enforce a concurrency limit by adding a `concurrency` configuration to your workflow declaration. This configuration includes a key which takes a function that returns a **concurrency group key**, which is a string that is used to group concurrent executions. **Note that this function should not also be used as a `hatchet.step`.** For example, the following workflow will only allow 5 concurrent executions for any workflow execution of `ConcurrencyDemoWorkflow`, since the key is statically set to `concurrency-key`: ```ts const workflow: Workflow = {