feat(system):优化后端
1.新增后端测试 2.增加了后端的加密 3.增加了i18n(国际化)
This commit is contained in:
@@ -59,10 +59,14 @@ class WorkerCluster:
|
||||
self._active_workers.move_to_end(agent_id)
|
||||
return self._active_workers[agent_id]
|
||||
|
||||
from kilostar.core.global_state_machine.gsm_snapshot import fetch_snapshot
|
||||
|
||||
global_state_machine = ray_actor_hook(
|
||||
"global_state_machine"
|
||||
).global_state_machine
|
||||
agent_config = await global_state_machine.get_individual.remote(agent_id)
|
||||
# 走快照读,避开 GSM actor RPC:高频唤醒路径不再是单 actor 瓶颈
|
||||
snapshot = await fetch_snapshot(gsm_actor=global_state_machine)
|
||||
agent_config = snapshot.individuals.get(agent_id)
|
||||
|
||||
if not agent_config:
|
||||
raise ValueError(f"无法唤醒 Agent {agent_id}:数据库中不存在该档案")
|
||||
|
||||
Reference in New Issue
Block a user