This DDP prefect starter us being used to setup DostEducation's Prefect based infrastructure setup.
- pyenv - for maintaining multiple python versions
- python 3.8.10
- Clone the repository
git clone https://github.com/DostEducation/prefect_deployments.git
- Switch to project folder and setup the virtual environment
cd prefect_deployments python3 -m venv venv - Activate the virtual environment
source ./venv/bin/activate - Install the dependencies from requirements.txt:
pip3 install -r requirements.txt
- After any new packages introduced, install them in your virtual env and use this to update the requirements.txt:
pip3 freeze > requirements.txt - Start prefect orion server
prefect orion start
- 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