From e79a7f4368cd11f191ac57507ee403771e34e0f5 Mon Sep 17 00:00:00 2001 From: Nicholas Kalar Date: Fri, 20 Jun 2025 17:31:08 -0400 Subject: [PATCH] initial shell script --- orchestrator.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 orchestrator.sh 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