auto-sync: 2026-05-17 21:44:17
This commit is contained in:
@@ -393,6 +393,16 @@ class Ticker:
|
||||
)
|
||||
if result["status"] == "dispatched":
|
||||
dispatched.append(task.id)
|
||||
# 更新 current_agent 为审查者
|
||||
conn = get_connection(db_path)
|
||||
try:
|
||||
conn.execute(
|
||||
"UPDATE tasks SET current_agent=? WHERE id=?",
|
||||
(result["agent_id"], task.id),
|
||||
)
|
||||
conn.commit()
|
||||
finally:
|
||||
conn.close()
|
||||
logger.info("Dispatched review for %s to %s",
|
||||
task.id, result["agent_id"])
|
||||
except Exception:
|
||||
|
||||
Reference in New Issue
Block a user