UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ironbank Containers
G
Galvanize
galvanize
python-code-evaluator
Commits
5d35af51
Commit
5d35af51
authored
Feb 01, 2021
by
Michael Uranaka
Browse files
fixing get job
parent
17f4c6a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
scripts/get-job.sh
scripts/get-job.sh
+8
-8
No files found.
scripts/get-job.sh
View file @
5d35af51
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment