dbt Cloud - Execute Job
Overviewβ
First time using this Blueprint? Make sure you follow our dbt Cloud authorization guide.β
Execute a single job on dbt Cloud, creating a new run. The job must be set up within the dbt Cloud interface. Shipyard does not support sending override commands to the job at this time.
This Blueprint will only kick off the job and will always return a status of success. It will not wait around to verify if the created run was successfully completed, but it will create and store the generated run ID to shipyard-artifacts/dbtcloud-blueprints/variables/run_id.pickle
The "cause" for an execution triggered via Shipyard will always contain the following details:
- Fleet ID
- Vessel ID
- Vessel Log ID
The response for this request will always be stored at shipyard-artifacts/dbtcloud-blueprints/responses/job_JOBID_response.json
Variablesβ
Name | Reference | Type | Required | Default | Options | Description |
---|---|---|---|---|---|---|
Service Token | DBT_API_KEY | Password | β | - | - | Your unique service token for dbt Cloud. Instructions for how to get this token can be found in the authorization documentation. |
Account ID | DBT_ACCOUNT_ID | Alphanumeric | β | - | - | Your unique Account ID, found in the URL of dbt Cloud. https://cloud.getdbt.com/#/accounts/ACCOUNT_ID/projects/PROJECT_ID/dashboard/ |
Job ID | DBT_JOB_ID | Alphanumeric | β | - | - | The ID of a specific job you want to run, found in the URL of dbt Cloud. https://cloud.getdbt.com/#/accounts/ACCOUNT_ID/projects/PROJECT_ID/jobs/JOB_ID/ |
YAMLβ
Below is the YAML template for this Blueprint and can be used in the Fleet YAML Editor.
source:
blueprint: dbt Cloud - Execute Job
inputs:
DBT_API_KEY: null ## REQUIRED
DBT_ACCOUNT_ID: null ## REQUIRED
DBT_JOB_ID: null ## REQUIRED
type: BLUEPRINT
guardrails:
retry_count: 1
retry_wait: 0s
runtime_cutoff: 4h0m0s
exclude_exit_code_ranges:
- "200"
- "201"
- "211"
- "212"