- 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
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>
-
Start the Prefect Orion server:
prefect orion start
-
In a separate terminal, start an agent to poll the
default
work queue:prefect agent start -q default
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
-
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.