Skip to main content

DBT Integration

Installation

Latest version is 0.4.6 (compatible with DBT 1.5.x-1.9.x)

pip install --extra-index-url=https://user:[email protected]/pypi/simple/ definity-agent-dbt

Environment Variables

Core Configuration Parameters

NameValueNote
DEFINITY_SERVER_URLhttps://app.definity.runmandatory
DEFINITY_TOKENyour-integration-tokenmandatory for SaaS
DEFINITY_ENVoptional

Pipeline Tracking Parameters

NameValueNote
DEFINITY_PIPELINE_NAMEdefault - DBT project nameoptional
DEFINITY_PIPELINE_PITdefault - current timelogical point in time
DEFINITY_TASK_NAMEdefault - DBT project nameoptional

Advanced Configuration

NameValueNote
DEFINITY_LOG_LEVELdefault - info
DEFINITY_SERVER_ATTEMPTSdefault - 2
DEFINITY_SERVER_ATTEMPT_SLEEPdefault - 10
DEFINITY_SERVER_TIMEOUTdefault - 5

Airflow Integration

When running from Airflow default values for app/task names and PIT will be taken from Airflow

Usage

# instead of "dbt run"
definity-dbt run