capabilities.work

Cloud Create Job and Run It

A 3-step recipe with dbt. We can help you get access.

Recipe · 3 steps

Cloud Create Job and Run It

with dbt

Create a job in a project and trigger its first run.

  1. Read the target project to confirm it exists before creating a job against it.
  2. Create a job in the confirmed project, bound to the supplied environment and execute steps. dbt Cloud returns the created job including its id.
  3. Trigger the first run of the newly created job.
What you'll need to have ready
  • accountId: The dbt Cloud account id.
  • projectId: The project the new job belongs to.
  • environmentId: The environment the job runs in.
  • jobName: A display name for the new job.
  • executeSteps: The list of dbt commands the job runs (e.g. ["dbt build"]).
  • token: The dbt Cloud service token (sent as Authorization Bearer Token).
  • cause: A human-readable reason for the first run.
For your developer

Arazzo workflow dbt:create-job-and-run, 3 operations: getProject → createJob → triggerJobRun. Specs on APIs.io.