An airflow pipeline for building and scoring NBA daily fantasy models
An airflow pipeline for building and scoring NBA daily fantasy models, including:
This project requires the following dependencies in order to work:
* If there are issues docker permissions, follow these instructions.
This implementation of the airflow pipeline uses airflow’s CeleryExecutor
which allows for parallel execution and easy scaling up of worker nodes.
docker-compose up --build
The airflow webserver is available on port 8080
on the host machine.
Note by default, this local developer version of the airflow pipeline, using pipenv, uses the SequentialExecutor
which does not allow for parallel execution.
# install dependencies
pipenv install --dev
# activate environment
pipenv shell
# setup airflow
export AIRFLOW_HOME=$(pwd)
airflow db init
airflow users create --username airflow --password airflow --firstname Anonymous --lastname Admin --role Admin --email admin@example.org
# run airflow
airflow webserver
airflow scheduler