Files
model-platform/runtime
tao.chenandClaude b0f93d976f build: switch services to gunicorn with per-service config
Replace uvicorn with gunicorn + UvicornWorker in backend, runtime,
and schedule Dockerfiles. New gunicorn.conf.py per service exposes
bind/workers/timeout/graceful_timeout as GUNICORN_* env knobs.

Notable details:
- schedule: timeout=0 (disables gunicorn worker heartbeat) so long
  notebook execution isn't killed by gunicorn's silent-worker kill.
- All three configs: drop dead threads=4 setting; UvicornWorker is
  async and ignores threads.
- Pin gunicorn>=26.0.0 in each pyproject; uv.lock regenerated.
- Drop stale 'COPY contracts ./contracts' from runtime and schedule
  Dockerfiles (contracts dir was deleted in an earlier refactor;
  builds would have failed).
- backend Dockerfile: switch to uv sync layout matching runtime/
  schedule; add build deps for native wheels.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-31 15:07:45 +08:00
..

Runtime

独立 Runtime/Jupyter 管理服务:

  • 使用共享 Jupyter Server
  • 在 MySQL 中维护 Runtime 实例和编辑会话租约;
  • 创建、心跳和释放文件编辑锁;
  • 创建短期 Jupyter 访问票据;
  • 为 Nginx auth_request 校验票据并注入内部 Jupyter Token。

当前简化部署要求 Runtime 单副本运行。