initial shell script

This commit is contained in:
2025-06-20 17:31:08 -04:00
parent a81d507cf2
commit e79a7f4368

21
orchestrator.sh Executable file
View File

@@ -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