Skip to content

DalgoT4D/prefect_deployments

Repository files navigation

ddp_prefect_starter

  • Setup a virtual environment using python3 -m venv <name>
  • Activate the virtual env source <name>/bin/activate
  • Install the dependencies from requirements.txt:
    pip3 install -r requirements.txt
  • If you add new packages, install them in your virtual env and update requirements.txt:
    pip3 freeze > requirements.txt

Environment Variables

Create a .env file in the project root and define the following variables:

DOST_AIRBYTE_CONNECTION=<your Airbyte connection ID>
DOST_GITHUB_URL=<your GitHub repository URL>

Starting Prefect

  1. Start the Prefect Orion server:

    prefect orion start
  2. In a separate terminal, start an agent to poll the default work queue:

    prefect agent start -q default

Deploying Flows

Register the provided deployment YAML files:

prefect deployment apply orchestrate-airbyte-deployment.yaml
prefect deployment apply orchestrate-dbt-deployment.yaml
prefect deployment apply orchestration-flow-deployment.yaml

Running Flows

  • To run the orchestration-flow manually:

    prefect deployment run dost-orchestrate-flow
  • To run the orchestrate-airbyte flow manually:

    prefect deployment run dost-orchestrate-airbyte
  • The orchestrate-dbt flow is scheduled to run every hour once applied.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages