A scheduled run that discovers a dead connector halfway through has already wasted its time and may have half-finished its work. A health check before the run finds the problem first: a quick check that each connector answers, each credential is valid, and each tool the run needs is reachable. Zapier’s agent triggers run on a schedule, and the run that starts on a dead connection is a run that fails slowly; a check that runs first fails fast instead. Keep the check light, a ping, not a full run, and fail the run before it starts if any check fails, with a message naming the dead connector.
What you need
- A scheduled agent run and the list of connectors and tools it needs
- A light health check per connector: a ping, not a full call
- A named outcome for a failed check: fail fast and tell the owner
Step 1: List what the run needs and how to ping each one
Write down every connector and tool the run needs, with a cheap check for each: a ping, a status call, or a token validity check. A check that does real work is not a health check.
Step 2: Run the checks before the agent starts
Before the agent’s first step, run each check in turn. If any check fails, stop the run before it starts and tell the owner which connector is dead. A check that runs after the failure is not a check.
Step 3: Test by breaking one connector on purpose
Disable one connector and run the schedule, confirming the run fails fast with a message naming that connector, and that no partial work happens. If the run starts anyway, the check is not before the run.
Worked example: synthetic health check
The table below is a synthetic example. It shows the expected result of the health check; no connector was broken.
| Connector | Health check | Run starts? |
|---|---|---|
| Gmail | Ping ok | Yes |
| Sheets | Ping ok | Yes |
| Slack | Ping fails | No – owner told |
| No run starts on a dead connector | Yes | Pass |
Expected result (UNTESTED). the run starts when all connectors are healthy, and fails fast with a named connector when Slack is down. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- A health check only tests what it pings; a connector can pass the ping and fail on the real call.
- A check that is too heavy is a second run, so keep it to pings.
- Credentials can expire between the check and the run, so refresh tokens first.
- A failed check needs an owner who acts on it, or the run just keeps failing fast.
