Workflow Reliability

Our Commitment

MountDev Ops is built security first. Your business data belongs to you, and you can export all of it at any time. We never use analytics or tracking of any kind inside MountDev Ops.

Test With Sample Data

You can test a saved workflow with sample data, made-up values you give it, such as a contact named Dana Lee (action workflows.test_run). A test is a run labeled Test. The data tools and AI steps run for real on your sample, so you see what each step produced. An action runs only if it has a test mode, and then only in it. An action with no test mode is skipped and marked Skipped. Nothing is sent, charged, deleted, or changed anywhere. A wait is not waited for, and a step that would ask for your OK does not stop the test.

A test counts the same as any run: 1 for each step that did something, which here means an action that ran in test mode and each AI step. It is labeled Test in Run History and in what a workflow used. A test does not turn the workflow on, and it does not count toward a failure alert.

Run a Failed Step Again

When a run fails, you can run it again from the step that failed (action workflows.run_retry). The steps that finished stay finished and are not taken again. The step keeps the same key it had, so an action that already did its work knows it has it, and nobody is charged or emailed twice. It starts with its full retries again, and every try is still counted. Only a person does this, and only for a run that failed. A run whose failure path ran cannot be run again this way, because the steps before the failed one may have been undone: start a new run instead.

Automatic Retries

A step that fails is tried again after 1 minute, 5 minutes, 30 minutes, then 2 hours, up to the number of retries it has (3 unless the workflow says otherwise, at most 4). A "too many requests" answer from an outside service waits for the time the service asked for. A step that cannot work however often it is tried, such as a missing AI key or a value that is not a number, stops at once.

Failure Alerts

A workflow can tell you when its runs keep failing. Set how many failed runs in a row it takes (1 to 20, or 0 for never) when you save the workflow (action workflows.save). New workflows start with 3. Workflows made before alerts existed start with it off. When the count is reached, everyone who may manage workflows is told in Needs You Today, once, with the plain reason the last run stopped and a link to Run History. A run that finishes ends the count, so the next time it keeps failing you are told again. Tests and runs you stopped are not counted. Who is told follows the permission, so a custom role that has it is told, and a person who loses it is not.

Failure Emails

Each time a run fails, the people who can fix it are emailed once. The email goes at once, at any hour, whatever your Business Hours say, and it never waits to be combined with others. There is no summary, digest, or "N failures" email: 50 failed runs send 50 emails to each person.

  • Who gets it: your workspace's owners and admins, and the person who made the workflow. A person who is both gets one email, and two equal addresses get one. Someone who is turned off or removed is not emailed. You can also add addresses of your own to a workflow, and name a group of steps with its own people.
  • When it is sent: when a run ends Failed (a step used its last try, or a failure no retry helps, or the failure steps ended), and when a run stops unexpectedly and needs attention (Run History, Needs Attention). Nothing is sent while a step is only retrying, when a run finishes, for a test run, or for a run you stopped. Run Again that fails again is a new failure and sends a new email. The same failure is never emailed twice.
  • Notice groups: every step is in a group. The default group, All Steps, covers every step you have not put in another group. A group has its steps, who is emailed, and an on and off switch. A group can cover one step, two steps, three, or any number, and a failure sends one email for the group that holds the step that failed, never one per step.
  • Extra addresses: only a signed-in person with the Workflows manage permission can type an email address to add. An AI agent or an API key cannot add one, because an address typed by a program could send failure text to anyone. People already in your workspace can be named by name.
  • What it says: the workflow's name, the step that failed, the plain reason (with keys, tokens, and addresses taken out, the same as Run History), the run number and time, and a button, Open Run History. It says why you are receiving it and never holds a record's values.
  • How it is sent: only through the email service and sender you set up yourself in Settings, Email. MountDev Ops never sends it for you. Until you set one up, the email is kept in your own workspace, not lost, and sent as soon as you have. Each send is in Recent Emails without its text, and you can turn the email off for your whole workspace in Settings, Notifications.
  • Setting it: actions workflows.notice.get and workflows.notice.save (the Workflows manage permission, people only). Choosing groups and typing addresses on the workflow's page and when you create a workflow is Planned.

Version History and Roll Back

Every time a workflow is saved, the version it replaces is kept with its name, steps, and starters, who saved it, when, and a plain sentence of what changed, such as "Added Format Text. Renamed it." (actions workflows.versions and workflows.version). Looking at an old version changes nothing. A workflow made before versions were kept shows its current version and keeps older ones from its next save on.

To roll back, pick a version (action workflows.rollback). The roll back is a new version that copies the old one, so the history only grows and nothing is removed. A workflow that is on stays on. If the old version uses something your account no longer has, such as an action it is not offered or a lookup table that was removed, the roll back is refused with a plain sentence and nothing changes.

On Failure, Run These Steps

A workflow can have one optional failure path: up to 10 steps that run once when the run fails (the on_failure list of action workflows.save). It is for putting things right after something went wrong, such as undoing earlier steps, restoring a backup, or telling the office.

  • When it runs. After a step has used its last try, or failed in a way no retry helps, and before the run is marked Failed. It runs once for the run. It does not run when a person declines a card, when a person presses Stop This Run, or when no step failed. A Wait Until set to Fail the Run is a failed step, so it does run the path.
  • What can be in it. Do Something (an action), Undo Earlier Steps, Ask for an OK, Tell People Something Is Waiting, Report Back to the Client, and the data tools Format, Look Up, Filter, and Branch. It cannot hold a wait, a wait for something, Ask a Client, a check that skips ahead, For Each Record, an AI step, or a failure path of its own, so a failed run never stays open on a time or a client. A step name cannot repeat the name of a step of the workflow.
  • What it is given. failure.step (the step that failed), failure.reason (a short plain reason with any key, token, or address taken out), failure.tries (how many tries it took), and failure.number (its place in the workflow). A step uses them like any value, for example {{failure.reason}}. The values the run had before are still there.
  • Every rule a step has applies. A step that spends money, deletes data, or emails a client always stops for a person and makes a card, however the workflow was written. The path runs by itself up to that step and waits there, without limit. The card says "Rolling back after" the step that failed. A declined card ends the path. Each step has its own tries, its own key (<run>:<step>:failure), and counts 1 toward Background work like any step that does something. A run keeps the path it started with, even if the workflow is changed while it runs.
  • Then the run is Failed. When the path ends, the run is marked Failed as it would have been, so failure alerts and the failing count work as before. Run History adds Rolled Back (every step done), Rollback Stopped (a person declined a card, or a step in the path failed), or No Failure Steps. A failure step that fails ends the path, and the run shows both reasons, the first one first.
  • Run Again. A run whose failure path ran cannot be run again from the step that failed, because the steps before it may have been undone. It says "This run was rolled back. Start a new run." Press Run for a new run instead.
  • Test a Failure. On the Build tab, pick a step and read what the path would do if that step failed, with sample values for failure.. An action runs only in its test mode, so nothing is sent, charged, deleted, or changed (action workflows.test with fail_at).

Undo Earlier Steps

This step exists only in a failure path. It takes the steps of the run that finished before the failure, newest first, and for each one whose action names an undo (see Undo Action), runs the reverse as a step of its own, with its own card if the reverse deletes, spends, or emails a client.

  • Which Steps is All That Finished, or a list of up to 10 steps you name.
  • A step with no undo is listed as Cannot Be Undone and passed over. A step that did not finish is never undone.
  • It stops at the first reverse that fails, because the order matters. The run shows what was undone, passed over, and failed as counts, and the path stops there.
  • It hands on undone, skipped, and failed as counts.
  • Each reverse has the key undo:<step>:<run>, so a crash and a retry never undoes the same step twice.

The Snapshot and Roll Back Pattern

Nothing more is needed. Take a snapshot early with any action your connection has, such as Make a Backup, which keeps backup_id. Change things. The failure path has three steps in this order: Undo Earlier Steps, Restore a Backup (given backup_id), and a step that tells people something is waiting, with the reason in its text. Restore a Backup is flagged Deletes Something, so a person sees a card and decides. If a service has no undo for a step, the path can still restore from the snapshot.

Who Can Do This

People who may manage workflows (owners, admins, and anyone whose role allows it). AI agents, API keys, and assistants never use these actions.

Where to Find It

Workflows, then Workflows, then Test Run. Owners, admins, and anyone whose role or permission group allows it see it.

On a workflow, Test With Sample Data is beside Test Run, If It Keeps Failing is a card on the Build tab, and History is a tab with See It and Roll Back for each version. In Run History, a test shows a Test label, and a failed run has Run Again From the Failed Step. If If a Step Fails has steps, it is a card under Steps on the Build tab, with Test a Failure below it. A run that rolled back shows Rolled Back or Rollback Stopped in Run History, with its failure steps under the steps, and a card from the path says it is rolling back after the step that failed in Approvals.