We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2144d3 commit 535057cCopy full SHA for 535057c
template/start-code-interpreter.sh
@@ -6,4 +6,5 @@ until curl -s -o /dev/null -w '%{http_code}' http://localhost:8888/api/status |
6
done
7
echo "Jupyter server is ready, starting Code Interpreter..."
8
9
+echo $$ > /var/run/code-interpreter.pid
10
exec /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
template/start-jupyter.sh
@@ -4,4 +4,4 @@
4
5
# Jupyter exited — kill code-interpreter so supervisord restarts both
echo "Jupyter exited, killing code-interpreter..."
-pkill -f "uvicorn main:app"
+kill "$(cat /var/run/code-interpreter.pid)" 2>/dev/null
0 commit comments