- Python
- Apache Airflow
- Bash
Two Apache Airflow DAGs. The first uses Bash to create a text file, reads and prints that file with Python, creates three simultaneous tasks by making random selections from a list, and ensures everything ran by finishing with an empty operator.
The second uses decorators to establish our DAG and our Python operators. It utilizes Xcoms to pass return values along the DAG, using basic comparisons to print whether there was enough rain to grow apples, or if we'll have 'better luck next year!'
- In the terminal, clone github repository using the following command;
$ git clone https://github.com/jessgschueler/airflow-orchard
- In a venv, Pip install requirements.txt file
- From inside the main directory, set the .env;
echo -e "AIRFLOW_UID=$(id -u)\nAIRFLOW_GID=0" > .env
- Initialize Airflow
docker-compose up airflow-init
- Run the DAGs in the Airflow GUI from http://localhost:8080
- None at this time
MIT
Copyright (c) 6/17/22 Jess Schueler