Cloud Re-run the Latest Failed Run
A 2-step recipe with dbt. We can help you get access.
Recipe · 2 steps
Cloud Re-run the Latest Failed Run
with dbt
Re-trigger the job of the latest run only when that run errored.
- List runs for the account; the first entry is treated as the most recent run. Run status codes are 1 (queued), 2 (starting), 3 (running), 10 (success), 20 (error) and 30 (cancelled).
- Trigger a fresh run of the job whose latest run errored.
What you'll need to have ready
- accountId: The dbt Cloud account id.
- token: The dbt Cloud service token (sent as Authorization Bearer Token).
- cause: A human-readable reason for the recovery run.
For your developer
Arazzo workflow dbt:rerun-latest-failed-run, 2 operations: listRuns → triggerJobRun. Specs on APIs.io.