auto-sync: 2026-05-25 13:23:15

This commit is contained in:
cfdaily
2026-05-25 13:23:15 +08:00
parent d9d8862706
commit 19aae06c7d
+1 -1
View File
@@ -633,7 +633,7 @@ curl -X POST http://{api_host}:{api_port}/api/projects/{project_id}/tasks/{task_
row = conn.execute(
"SELECT status FROM tasks WHERE id=?", (task_id,)
).fetchone()
if row and row["status"] in ("done", "failed", "cancelled", "review"):
if row and row["status"] in ("done", "failed", "cancelled", "review", "pending"):
logger.info("Retry skip: task %s already %s (agent=%s)",
task_id, row["status"], agent_id)
# counter 仍然占用,通过 on_complete release