diff --git a/orchestrator.sh b/orchestrator.sh new file mode 100755 index 0000000..3a0bc30 --- /dev/null +++ b/orchestrator.sh @@ -0,0 +1,21 @@ +#!/bin/zsh +source venv/bin/activate; + +pip install -r requirements.txt; + +python3 src/extract.py &>> lms-etl.log; + +ret=$? +if [[ $ret -ne 1 ]]; then +python3 src/transform.py &>> lms-etl.log; +fi + +ret=$? +if [ $ret -ne 1 ]; then + python3 src/load.py &>> lms-etl.log; +fi + +ret=$? +if [ $ret -ne 1 ]; then + rm output/*; +fi \ No newline at end of file