dbt · Arazzo Workflow
dbt Cloud Trigger Run and Poll to Completion
Version 1.0.0
Trigger a dbt Cloud job run, poll the run until it succeeds, then list its artifacts.
View Spec
View on GitHub
Analytics EngineeringDataELTMetricsProjectsSQLTransformationArazzoWorkflows
Provider
Workflows
trigger-run-and-poll
Trigger a job run and poll it to a successful completion, then fetch artifacts.
Triggers a run for the supplied job, then repeatedly fetches the run until dbt Cloud reports status 10 (success). On success the run artifacts are listed; on a terminal failure (status 20) or cancellation (status 30) the workflow stops.
1
triggerRun
triggerJobRun
Trigger a new run of the supplied job. dbt Cloud queues the run and returns the newly created run resource including its id and initial status.
2
pollRun
getRun
Fetch the run resource. dbt Cloud run status codes are 1 (queued), 2 (starting), 3 (running), 10 (success), 20 (error) and 30 (cancelled). The step branches on the returned status: success advances to listing artifacts, a terminal failure or cancellation ends the workflow, and any non-terminal status loops back to poll again.
3
listArtifacts
listRunArtifacts
List the artifacts produced by the successful run so downstream tools can retrieve manifest.json, catalog.json and run_results.json.