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

# Run Rules

> Use Run Rules to control the order that dependent flows run in.

Run Rules let you control the sequence flows run in. Each rule defines one **before** set and one **after** set of flows. You can select flows by name, group, or tag.

The order flows run in doesn't always matter, but when it does — for example, when you want quick sanity checks to complete before longer or more complex flows — Run Rules give you that control.

<Note>
  Only **active** flows execute in a run. Drafts are ignored even if they're part of a rule.
</Note>

<Tip>
  To run flows in a sequence like **A → B → C**, create two rules: run **A** before **B**, and run **B** before **C**.
</Tip>

<Tip>
  Double-check your before and after sets for circular setups.
</Tip>

By default, if a flow in the before set fails, flows in the after set are automatically skipped rather than run — this reduces noise, shortens run time, and keeps the failure list focused on the root cause. This behavior can be turned off per rule.
