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

load flavor specific timeout

parent 72ffe668
No related branches found
No related tags found
No related merge requests found
Pipeline #167722 passed
......@@ -16,6 +16,13 @@ set_env() {
export PYTHONNOUSERSITE=1
export MODULEPATH=/p/software/jsccloud/productionstages
export OTHERSTAGES=/p/software/jsccloud/productionstages
JUPYTER_FLAVOR_VARS=/tmp/custom/load_flavor_variables.sh
if [ -f $JUPYTER_FLAVOR_VARS ]; then
source $JUPYTER_FLAVOR_VARS
else
echo "File $JUPYTER_FLAVOR_VARS does not exist. Use 12h as default timeout."
export JUPYTERHUB_TIMEOUT=12h
fi
echo "$(date) - Set environment variables done"
}
......@@ -119,7 +126,7 @@ cleanup () {
start () {
echo "$(date) - Start jupyterhub-singleuser ..."
timeout 30d jupyterhub-singleuser 2>${JUPYTER_LOG_DIR}/stderr 1>${JUPYTER_LOG_DIR}/stdout
timeout $JUPYTERHUB_TIMEOUT jupyterhub-singleuser 2>${JUPYTER_LOG_DIR}/stderr 1>${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