Skip to content

Commit

Permalink
[Jupyter] Add start timestamps and log exit_code [integ_3.5] (#1018)
Browse files Browse the repository at this point in the history
Co-authored-by: Dany Kaufman <[email protected]>
  • Loading branch information
danykaufman and Dany Kaufman authored Jan 30, 2024
1 parent f73d6e6 commit 6604df6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion stable/jupyter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 0.13.38
version: 0.13.39
apiVersion: v1
appVersion: 3.4.8
name: jupyter
Expand Down
10 changes: 7 additions & 3 deletions stable/jupyter/templates/jupyter-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ data:
## log + timer
start=${SECONDS}
log () {
echo [$(( SECONDS - start ))s] "$*"
echo [$(date)] "$*"
}
{{ include "v3io-configs.script.lookupService" . | indent 4 }}
Expand Down Expand Up @@ -633,6 +633,10 @@ data:


## Start jupyter
log 'Starting jupyter'
log "Starting jupyter lab --no-browser $@"
source activate jupyter
jupyter lab --no-browser $@
jupyter lab --no-browser "$@"

## Log jupyter exit
exit_code=$?
log "Jupyter Lab exited with code $exit_code"

0 comments on commit 6604df6

Please sign in to comment.