JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix(session): recycle one-shot (heartbeat/cron) session processors to fix memory leak
xiaotian0776bdc0cfeb9af
diff --git a/jiuwenswarm/server/runtime/session/session_manager.py b/jiuwenswarm/server/runtime/session/session_manager.pyindex f7c3757a75..0a32d75502 100644--- a/jiuwenswarm/server/runtime/session/session_manager.py+++ b/jiuwenswarm/server/runtime/session/session_manager.py@@ -202,7 +202,7 @@ class SessionManager:if self._is_oneshot_session(session_id):queue = self._session_queues.get(session_id)if queue is not None:- await queue.put((1_000_000_000, None))+ await queue.put((1_000_000_000, None, None))def get_current_task(self, session_id: str) -> asyncio.Task | None:"""获取当前 session 正在执行的任务."""