UNCLASSIFIED

Commit 5d35af51 authored by Michael Uranaka's avatar Michael Uranaka
Browse files

fixing get job

parent 17f4c6a0
......@@ -3,19 +3,11 @@
loop=1
while true; do
echo "Processing job number: $loop"
let "loop=loop+1"
# Start fresh, recopy the app into the working directory
rm -rf /usr/src/app
cp -r /app /usr/src
cd /usr/src/app
# If it exists, delete the json-object.json file and test folder
[ -e test_methods.py ] && rm test_methods.py
[ -e results.txt ] && rm results.txt
[ -e json-object.json ] && rm json-object.json
# Connect to the redis service,
# apply the redis commands to block-pop
# grep out the actual job payload, and
......@@ -27,6 +19,14 @@ while true; do
# continue if the json file is empty.
[ -s json-object.json ] || continue
# Log the current job number.
echo
echo "============================"
echo "Processing job number: $loop"
echo "============================"
echo
let "loop=loop+1"
# Do some pre-processing
python process-job.py
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment