Skip to content

Commit ba25ccc

Browse files
committed
move health check to avoid deadlocking process
1 parent 8f46d6b commit ba25ccc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

template/systemd/code-interpreter.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ BindsTo=jupyter.service
88
[Service]
99
Type=simple
1010
WorkingDirectory=/root/.server
11+
ExecStartPre=/root/.jupyter/jupyter-healthcheck.sh
1112
ExecStart=/root/.server/.venv/bin/uvicorn main:app --host 0.0.0.0 --port 49999 --workers 1 --no-access-log --no-use-colors --timeout-keep-alive 640
1213
Restart=always
1314
RestartSec=1

template/systemd/jupyter.service

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ Type=simple
77
Environment=MATPLOTLIBRC=/root/.config/matplotlib/.matplotlibrc
88
Environment=JUPYTER_CONFIG_PATH=/root/.jupyter
99
ExecStart=/usr/local/bin/jupyter server --IdentityProvider.token=""
10-
ExecStartPost=/root/.jupyter/jupyter-healthcheck.sh
11-
ExecStartPost=-/usr/bin/systemctl start code-interpreter
10+
ExecStartPost=-/usr/bin/systemctl start --no-block code-interpreter
1211
Restart=on-failure
1312
RestartSec=1
1413
StandardOutput=null

0 commit comments

Comments
 (0)