Prefect Upload

This Prefect flow automates the process of running your dbt project, collecting artifacts, and uploading them to Euno.

Prerequisites

  • Python 3.8+

  • Prefect 2.1+

  • prefect-dbt package

  • requests library

Installation

pip install prefect prefect-dbt requests

Configuration

Before running the flow, update these configuration variables:

WEBHOOK_URL = "https://api.app.euno.ai/accounts/YOUR_ACCOUNT_ID/integrations/YOUR_INTEGRATION_ID/prepare-upload"
EUNO_TOKEN = "your_integration_key_here"
DBT_PROJECT_PATH = "/path/to/your/dbt/project"
DBT_PROFILES_PATH = "/path/to/your/dbt/profiles"

With Prefect Blocks

Prefect Flow

The following example is basd on prefect-dbt 0.7.0 and later. For earlier versions see: prefect-dbt documentationarrow-up-right

Notes

  • The artifact files manifest.json and catalog.json are required. Other missing artifacts won't fail the flow

  • dbt build can be replaced with dbt compile

Usage

Option 1: Direct Execution

Option 2: Prefect Deployment

Prefect 2.10+

Prefect 3.x+

Option 3: Scheduled Runs

Monitoring and Alerts

Add notification blocks for monitoring:

Last updated