mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-06 12:12:39 +00:00
Add runtime governance for the sandbox and artifact store: a per-process concurrent-session cap with least-recently-used eviction of idle sessions and a periodic idle reaper (Celery beat), so sandbox kernels do not accumulate. The session manager performs all backend start/stop outside its lock and tears down the captured handle, so eviction never closes a concurrently re-opened session. Add per-user artifact quotas (count, total bytes, and per-file size) enforced at persistence time as a soft cap, and best-effort cleanup of per-render scratch directories in the sandbox workspace.