---
title: "Manage and monitor workflows"
sidebarTitle: "Manage and monitor"
description: "Manage workflow statuses, duplicate or delete workflows, and inspect runs and step logs."
icon: "magnifying-glass-chart"
---

Use workflow statuses to control when automations run and use run history to investigate every execution.

## Manage the lifecycle

Use the status menu in the builder to enable, disable, archive, or unarchive a workflow. You can also archive
or unarchive it from the options menu in the Workflows list.

| Status       | Behavior                                                                                                           |
| ------------ | ------------------------------------------------------------------------------------------------------------------ |
| **Draft**    | Editable and not running. New workflows and unarchived workflows use this status.                                  |
| **Enabled**  | Runs when its configured trigger fires and its conditions match. The definition is read-only until you disable it. |
| **Disabled** | Stops starting new runs and can be edited and enabled again.                                                       |
| **Archived** | Disabled, read-only, and hidden from the default list. It can be unarchived.                                       |

### Find and restore archived workflows

Archived workflows are excluded from the Workflows list by default. Open the **Status** filter and select
**Archived** to show them. Select **Unarchive** to restore an archived workflow as a draft.

### Duplicate a workflow

Select **Duplicate** from a workflow's options menu to create a draft copy of its definition. The copy does
not inherit the source workflow's run history. A copy of a workflow with a Webhook trigger gets its own Webhook
Secret URL and no expected payload, and secret header values aren't copied: enter them again before you enable the
copy.

### Delete a workflow

The **Delete** action appears after a workflow is archived.

<Warning>
  Deleting a workflow permanently removes the workflow and all of its run history. This cannot be undone.
</Warning>

## Monitor runs

<Frame>
  <img
    src="/images/platform/workflows/workflow-runs.webp"
    alt="Workflow Runs table showing workflow names, statuses, and execution timestamps"
  />
</Frame>

There are two ways to inspect runs:

- Select **Workflows** > **Runs** to see runs across the workspace. This view includes the workflow name.
- Open a workflow and select **Runs** to see only executions of that workflow.

Each table row shows the trigger, run status, start time, and finish time. Select a row to open its details.

[Test runs](/workflows/test-runs) appear in the same tables with a **Test** label. Use the runs filter to hide
them.

### Run statuses

| Status        | Meaning                                     |
| ------------- | ------------------------------------------- |
| **Queued**    | The run is waiting to start.                |
| **Running**   | The workflow is currently executing.        |
| **Completed** | All required steps finished successfully.   |
| **Failed**    | The workflow could not finish successfully. |
| **Canceled**  | The run stopped before it completed.        |

### Inspect run details and logs

<Frame>
  <img
    src="/images/platform/workflows/workflow-run-details.webp"
    alt="Workflow run details showing a succeeded email step, its input and output, and the trigger payload"
  />
</Frame>

The run details drawer includes:

- Run ID, status, start and finish times, attempt number, and any run-level error
- A chronological list of step logs, including duration, input, output, and errors
- The trigger payload and accumulated run data, and for a Webhook trigger the IP address of the caller
- For an If/else, the branch the run took and whether each condition matched
- For an HTTP request, the request it sent, with secret header values shown as `••••••`, and up to 64 KB of the
  response
- A link back to the workflow

Each step log has its own status: **Pending**, **Running**, **Succeeded**, **Failed**, or **Skipped**. A failed
step includes its error to help you identify the configuration or delivery problem.

An HTTP request set to **Don't wait** shows **Sending…** while its request is on the way, and then whether it was
sent or failed. Its outcome never changes the run's status. See [HTTP request](/workflows/http-request#dont-wait).

### Run data retention

A run's details are deleted 90 days after it finished, whatever its trigger: the trigger payload, each step's
input, output and errors, the run's error and the caller's IP address. The run itself stays until you delete its
workflow, with its status, trigger, version, and start and finish times, so run counts and usage for past dates
don't change. Its details drawer then shows **Details deleted after 90 days** in place of its steps.

- [Test runs](/workflows/test-runs) are deleted entirely 7 days after they started.
- A Webhook trigger's [last call](/workflows/webhook-trigger) or a Test request response is deleted after 90 days without
  an update.

Self-hosted instances can change the period with `WORKFLOW_RUN_DATA_RETENTION_DAYS`. See
[Environment variables](/self-hosting/configuration/environment-variables).

## Permissions

| Workspace access    | Available workflow operations                                                                                                  |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| **Read-only**       | List and open workflows, inspect their configuration, and view workspace-wide or workflow-specific runs. Read-only members can't see a Webhook Secret URL. Nobody sees a secret header value once it is saved.           |
| **Write or manage** | Create, configure, validate, enable, disable, archive, unarchive, duplicate, and delete workflows, in addition to read access. See and regenerate Webhook Secret URLs, set and replace secret headers, send test requests, and start Test runs. |

Workflow status still limits editing for members with write or manage access: enabled and archived definitions
are read-only. Disable an enabled workflow or unarchive an archived workflow before changing its definition.
