Skip to content
Snippets Groups Projects
Commit 468aac12 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

stop when worktable takes too much time

parent c5cd7c64
No related branches found
No related tags found
4 merge requests!98Draft: Newmaster,!96Draft: Newmain,!95Draft: Predict gain patched bb,!94Draft: Rework tests
...@@ -110,7 +110,13 @@ curl --location http://0.0.0.0:8080/api/projects/$PROJECT_ID/genome_full \ ...@@ -110,7 +110,13 @@ curl --location http://0.0.0.0:8080/api/projects/$PROJECT_ID/genome_full \
if [ ! -s log/07-*.csv ]; then exit 07; fi if [ ! -s log/07-*.csv ]; then exit 07; fi
echo "Waiting for worktable" echo "Waiting for worktable"
I=0
while [[ "$(jq .status.worktable projects/project_$PROJECT_ID/meta.json)" != "\"READY\"" ]]; do while [[ "$(jq .status.worktable projects/project_$PROJECT_ID/meta.json)" != "\"READY\"" ]]; do
I=$(expr $I + 1)
if [ $I -gt 120 ]; then
echo "Waited too long, exiting"
exit 77
fi
echo "... waiting for worktable" echo "... waiting for worktable"
sleep 1 sleep 1
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment