Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
user-jupyterlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jupyterjsc
k8s
images
user-jupyterlab
Commits
252e5c7d
Commit
252e5c7d
authored
1 year ago
by
Tim Kreuzer
Browse files
Options
Downloads
Patches
Plain Diff
test cleanup cancel
parent
f42966de
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!2
restructure User Images
Pipeline
#168092
passed
1 year ago
Stage: build
Stage: build-lmod
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lmod/files/start_jupyter.sh
+6
-1
6 additions, 1 deletion
lmod/files/start_jupyter.sh
with
6 additions
and
1 deletion
lmod/files/start_jupyter.sh
+
6
−
1
View file @
252e5c7d
...
...
@@ -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"
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment