Skip to content

Commit

Permalink
Better workaround to prevent Che-in-Che (#47)
Browse files Browse the repository at this point in the history
See MAAP-Project/Community#733 for explanation
  • Loading branch information
gchang authored Jun 21, 2023
1 parent cc7e364 commit d8e26a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jupyterlab3/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ for endpoint in endpoints:
END
}

for i in {1..20}
for i in {1..300}
do
echo "Attempt $i to construct PREVIEW_URL"
PREVIEW_URL=$(get_workspace_url_prefix "$CHE_WORKSPACE_NAMESPACE-che") # Che 7 OPS configuration where the (actual) namespace is "<username>-che"
Expand All @@ -58,6 +58,8 @@ do
then
break
fi
date # print timestamp in the logs if it doesn't get a URL
sleep 1
done
# end more robust method

Expand Down

0 comments on commit d8e26a8

Please sign in to comment.