auto-sync: 2026-05-17 21:42:55

This commit is contained in:
cfdaily
2026-05-17 21:42:55 +08:00
parent 90482c1651
commit c0ee23e996
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -238,9 +238,11 @@ class Dispatcher:
return "\n".join(parts)
def _record_routing(self, task: Task, decision: Dict[str, Any],
outcome: str, detail: Optional[str]) -> None:
outcome: str, detail: Optional[str],
override_db_path: Optional[Path] = None) -> None:
"""写路由审计日志到 routing_decisions 表"""
if not self.db_path:
effective_db = override_db_path or self.db_path
if not effective_db:
return
try:
conn = sqlite3.connect(str(self.db_path))
+1 -1
View File
@@ -383,7 +383,7 @@ class Ticker:
result = await self.dispatcher.dispatch(
task,
action_type="review",
project_config={"project_id": project_id},
project_config={"project_id": project_id, "db_path": db_path},
)
if result["status"] == "dispatched":
dispatched.append(task.id)