Skip to content

DostEducation/prefect_deployments

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ddp_prefect_starter For DostEducation analytics

This DDP prefect starter us being used to setup DostEducation's Prefect based infrastructure setup.

Installation

Prerequisite

  1. pyenv - for maintaining multiple python versions
  2. python 3.8.10

Steps

  1. Clone the repository
    git clone https://github.com/DostEducation/prefect_deployments.git
  2. Switch to project folder and setup the virtual environment
    cd prefect_deployments
    python3 -m venv venv
  3. Activate the virtual environment
    source ./venv/bin/activate
  4. Install the dependencies from requirements.txt:
    pip3 install -r requirements.txt
  5. After any new packages introduced, install them in your virtual env and use this to update the requirements.txt:
    pip3 freeze > requirements.txt
  6. Start prefect orion server
    prefect orion start
  7. To execute your flow you need to run an agent in different terminal (This will run the default queue worker).
    prefect agent start -q default

About

This repository has been used to deploy Dost analytics (dbt+airbyte+prefect)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%