> ## Documentation Index
> Fetch the complete documentation index at: https://help.maestra.io/llms.txt
> Use this file to discover all available pages before exploring further.

# What Happens When You Stop or Edit a Flow

Stopping a flow or editing its blocks affects customers who are partway through it. Here's what happens to them in each block, so you can change a live flow without surprises.

## Stopping a flow

### Wait block

Customers stay in the block until the wait time runs out. While the flow is stopped, the block's exit-time restriction is ignored — only the wait time counts.

* If you start the flow again before the wait time runs out, the customer carries on through the chain.
* If you don't, their run ends. The customer leaves the flow and doesn't pick up where they left off when you restart it.

> [accordion] Example
>
> **Setup:**
>
> * A customer entered a **Wait** block at 12:30 PM.
> * Block settings: a fixed 30-minute wait, with exits allowed only from 2:00 to 4:00 PM.
> * The flow was stopped at 12:45 PM and restarted at 1:05 PM.
>
> **What happened:** the wait time ran out at 1:00 PM (12:30 PM + 30 minutes). The flow was stopped, so the exit-time restriction (2:00–4:00 PM) didn't apply. The customer left the flow at 1:00 PM and didn't continue to the next blocks after the restart at 1:05 PM.
>
> **Alternative:** if the flow had been restarted at 12:50 PM, before the wait ran out, the customer would have stayed in the flow and continued after leaving the block at 2:00 PM.

### Other blocks

Customers in every other block leave the flow. They don't come back automatically when you restart it. They can only enter the flow again in later runs, if they match its start conditions again.

## Editing a flow

### Start block

#### Event-based start

> [!NOTE]
>
> Customers in a wait **carry on** if, by the time they leave the wait, the start block still has **the same event with the same settings**. Changing the start block's filter doesn't affect runs that have already started either.

| What you changed | What happens to customers |
| - | - |
| Only the **filter** | They **stay in the flow**. |
| The start to **Schedule** | They **leave the flow**. |
| The **event** | They **leave the flow**. |
| The same event, but **its settings** (see the list below) | They **leave the flow**. |

Settings changes that make customers leave:

* *Bonus points became available* — changed the balance.
* *Promo code issued* — changed the pool.
* *Action issued* — changed, added, or removed a template.
* *Product-related action issued* — changed, added, or removed a template.
* *Specified balance changes* — changed the balance.
* *Customer custom field value changed* — changed, added, or removed a field.
* *Subscription status changed* — changed the status or channel.
* *Customer exited a segmentation* — changed, added, or removed a segment.
* *Customer entered a segment* — changed, added, or removed a segment.
* *Product on a list changed* — changed the event type or the product list.
* *Viewed product changed* — changed the event type.
* *Product list changed* — changed the event type or the product list.
* *Order status changed* — changed the mode or category.
* *Discount card status changed* — changed the status.

> [!WARNING]
>
> This rule doesn't apply to the *Customer left the site or app* event. If you change that event's settings, customers stay in the flow.

#### Scheduled start

> [!NOTE]
>
> Customers in a wait **carry on** if, by the time they leave the wait, **the first block in the flow is still Schedule**.

* If you change any start settings or conditions, customers **stay in the flow**.
* If you change the start to **Event**, customers **leave the flow**.
* If you change **any** setting in a block that runs *Every N weeks* (days of the week, number of weeks, time, time zone, conditions), **the week count resets**. The flow starts at the next time the new settings allow.

### Wait block

> [!NOTE]
>
> The wait time is **set when the customer enters the block**.

**If you change the wait** — make the interval longer or shorter, or switch between fixed and dynamic — customers who were already in the block **leave on the old settings**. For example, if the wait was 5 days, customers who entered before your edit leave the wait after 5 days and continue through the new version of the flow. Customers who enter after your edit get the new wait.

> [!NOTE]
>
> Runs in a wait **belong to that specific block**.

* **If you delete the block**, customers **leave the flow**, even if you recreate the block in the same version.
* **If you move the block** to another spot on the canvas, customers **stay in the flow, in the same block**.

> [!NOTE]
>
> The exit time is **set once the wait is over**.

If you change the exit time:

* Customers who were in the wait when you edited it follow **the new settings**.
* Customers who had already left the wait when you edited it follow **the old settings**.

### Condition block

Changing or deleting the block **doesn't affect runs** — customers are checked against the conditions that were set when they entered the block.

### Steps block

Changing or deleting the block **doesn't affect runs** — the steps that were set when the customer entered the block are the ones that run.

### Split block

> [!NOTE]
>
> Branch distribution always follows the **current settings**.

When you edit the block (add or remove an option, change the odds), it **doesn't try to even out the stats** based on past runs, because it doesn't count them — the odds apply to each run on its own.

### A/B test block

* **When you edit a flow** with an A/B test, a new test starts for the current version and the old one ends.
* **When you delete the block**, the test ends but isn't deleted.
* **When you stop the flow**, the test ends.

Changes to the block, or deleting it, **don't affect customers** who've already passed through it — they carry on through the flow.

### Limit block

* Changing the allowed **number of runs** **doesn't reset** the counter.
* **Any** change to **counter resets** resets the run stats. That includes turning resets on or off and changing how often they happen.

> [!NOTE]
>
> The run counter **belongs to that specific block**.

* **If you delete the block**, the run count resets, even if you recreate the block in the same version.
* **If you move the block** to another spot on the canvas, the run stats are kept.

### Run frequency

> [!NOTE]
>
> A flow counts as run when a **step group executes**, so that block is where Maestra Platform decides whether the flow should run for the customer.

| What you changed while the customer was in a wait | What happens |
| - | - |
| **Lowered** the allowed frequency | If the customer is over the limit under the new settings, the run stops. |
| **Raised** the allowed frequency | If the customer is within the limit under the new settings, the run goes ahead. |

> [!NOTE]
>
> A customer's flow run count **never resets**, even if you completely rework the flow.

### Start and end dates

> [!NOTE]
>
> The start date decides **events from which date** trigger the flow.

If you **move the start date later** while a customer is already in the flow and in a wait, the flow still runs for them, because their event happened before your edit.

> [!NOTE]
>
> The end date works **the same way as stopping the flow by hand**.

If you **set an end date** while customers are in a wait, the flow stops. Customers in a **Wait** block stay there until their wait time runs out. Customers in other blocks leave right away.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.