Skip to content
Snippets Groups Projects
Commit 252e5c7d authored by Tim Kreuzer's avatar Tim Kreuzer
Browse files

test cleanup cancel

parent f42966de
Branches
Tags
1 merge request!2restructure User Images
Pipeline #168092 passed
......@@ -121,12 +121,17 @@ cleanup () {
else
echo "$(date) - JUST not mounted, do not unmount."
fi
# Send Cancel to JupyterHub, this way we can use restartPolicy: Always
# to "survive" VM reboots, but do not always restart properly stopped
# labs.
curl -X "POST" -d '{"failed": true, "progress": 100, "html_message": "<details><summary>Cleanup successful.</summary>Post stop hook ran successful</details>"}' ${JUPYTERHUB_EVENTS_URL}
echo "$(date) - Cleanup done."
}
start () {
echo "$(date) - Start jupyterhub-singleuser ..."
timeout $JUPYTERHUB_TIMEOUT jupyterhub-singleuser 2>${JUPYTER_LOG_DIR}/stderr 1>${JUPYTER_LOG_DIR}/stdout
timeout $JUPYTERHUB_TIMEOUT jupyterhub-singleuser 2>&1 | tee ${JUPYTER_LOG_DIR}/stdout
echo "$(date) - Start jupyterhub-singleuser done"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment