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
No related merge requests found
......@@ -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
echo "Waiting for worktable"
I=0
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"
sleep 1
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