From f3ae297ee4c7c7069b4015956afc833e2dd147f4 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Wed, 29 Jan 2025 10:00:41 +0200 Subject: [PATCH] docs: change retentionTime from milliseconds to seconds (#11207) --- .../learn/fundamentals/workflows/store-executions/page.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/apps/book/app/learn/fundamentals/workflows/store-executions/page.mdx b/www/apps/book/app/learn/fundamentals/workflows/store-executions/page.mdx index 663bb65c01..8db89ac870 100644 --- a/www/apps/book/app/learn/fundamentals/workflows/store-executions/page.mdx +++ b/www/apps/book/app/learn/fundamentals/workflows/store-executions/page.mdx @@ -36,12 +36,12 @@ You can view stored workflow executions from the Medusa Admin dashboard by going `createWorkflow` from the Workflows SDK can accept an object as a first parameter to set the workflow's configuration. To enable storing a workflow's executions: - Enable the `store` option. If your workflow is a [Long-Running Workflow](../long-running-workflow/page.mdx), this option is enabled by default. -- Set the `retentionTime` option to the number of milliseconds that the workflow execution should be stored in the database. +- Set the `retentionTime` option to the number of seconds that the workflow execution should be stored in the database. For example: export const highlights = [ - ["15", "retentionTime", "The number of milliseconds that the workflow's executions should be stored in the database."], + ["15", "retentionTime", "The number of seconds that the workflow's executions should be stored in the database."], ["16", "store", "Enable storing the workflow's executions in the database."], ] @@ -170,4 +170,4 @@ if (workflowExecution.state === "failed") { } ``` -Other state values include `done`, `invoking`, and `compensating`. \ No newline at end of file +Other state values include `done`, `invoking`, and `compensating`.