Guides · Automation

What should happen when a business automation fails?

Make it easy to see what ran, what changed, and what is still waiting. Give the person who owns the workflow a way to finish the job safely when a connection fails.

Check for missing work as well as errors

A daily report expects three files. At the cutoff, two have arrived. The workflow records which file is missing and who should check it. The result stays marked incomplete until the third file arrives or a person decides to share a partial report.

Use an alert with the run ID, time, failed step, and a link to the recovery instructions. Keep customer data out of the alert. Set a clear deadline for a missing event; a workflow that never starts may not report an error.

Check the last confirmed result before retrying

A connection can drop after a destination accepted an update. Use the original event or job ID to check what arrived. Retry only missing work, and record the next outcome. If the failure comes from a missing field or an expired permission, send it to the owner to fix before retrying.

Some providers do not retry automatically. Check each provider’s behavior. For example, GitHub documents how its webhook failures are redelivered. Try a duplicate and a late event in the webhook replay simulator.

Reconcile the expected and actual results

When the third file arrives, compare the three expected file IDs with the processed IDs. Rebuild the report from that set and mark the run complete. If someone already shared a partial report, make the correction visible rather than sending another copy without context.

Write down how to pause new work, find the last completed run, and handle pending cases manually. Have the operator rehearse that sequence with sample data before launch.

What to include in a recovery handover

Signal
What marks the work as overdue, incomplete, or failed?
Owner
Who gets the alert, and where are the instructions?
Retry
How do you tell which updates already happened?
Completion
How does the operator reconcile the result and return to normal work?