auto-sync: 2026-05-18 00:29:24
This commit is contained in:
@@ -336,10 +336,11 @@ class Ticker:
|
||||
# ------------------------------------------------------------------
|
||||
|
||||
async def _dispatch_pending(self, db_path: Path,
|
||||
project_id: str) -> List[str]:
|
||||
"""扫描 pending 任务并调度"""
|
||||
project_id: str,
|
||||
card_id: Optional[str] = None) -> List[str]:
|
||||
"""扫描 pending 任务并调度(可按 card_id 过滤)"""
|
||||
queries = Queries(db_path)
|
||||
pending = queries.tasks_by_status("pending")
|
||||
pending = queries.pending_dispatchable(card_id=card_id)
|
||||
dispatched: List[str] = []
|
||||
|
||||
if not pending:
|
||||
@@ -380,11 +381,12 @@ class Ticker:
|
||||
return dispatched
|
||||
|
||||
async def _dispatch_reviews(self, db_path: Path,
|
||||
project_id: str) -> List[str]:
|
||||
"""扫描 review 状态任务,检查是否有产出,调度审查 Agent"""
|
||||
project_id: str,
|
||||
card_id: Optional[str] = None) -> List[str]:
|
||||
"""扫描 review 状态任务,检查是否有产出,调度审查 Agent(可按 card_id 过滤)"""
|
||||
queries = Queries(db_path)
|
||||
bb = Blackboard(db_path)
|
||||
review_tasks = queries.tasks_by_status("review")
|
||||
review_tasks = queries.tasks_by_status("review", card_id=card_id)
|
||||
dispatched: List[str] = []
|
||||
|
||||
for task in review_tasks:
|
||||
|
||||
Reference in New Issue
Block a user