auto-sync: 2026-05-21 09:08:36

This commit is contained in:
cfdaily
2026-05-21 09:08:36 +08:00
parent dfcbcb0ecf
commit 8bbc1333d5
+13
View File
@@ -178,6 +178,19 @@ class Ticker:
logger.exception("Tick %d project %s error", tick_num, project_id)
results["projects"][project_id] = {"error": str(e)}
# 虚拟项目 _general:不在 registry 但需要调度
general_db = Path(self.registry.root) / "_general" / "blackboard.db"
if general_db.exists() and "_general" not in active_projects:
try:
pr = await self._tick_project("_general", {
"id": "_general", "name": "一般任务",
"status": "active", "source": "virtual",
})
results["projects"]["_general"] = pr
except Exception as e:
logger.exception("Tick %d _general error", tick_num)
results["projects"]["_general"] = {"error": str(e)}
logger.debug("Tick %d complete: %d projects", tick_num, len(active_projects))
if self.on_tick_complete: