auto-sync: 2026-06-01 00:15:49

This commit is contained in:
cfdaily
2026-06-01 00:15:49 +08:00
parent fec0f3bb7a
commit 20c086c7c0
+2 -1
View File
@@ -894,7 +894,8 @@ 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") # Bug-6 fix: pending 不是终态:
# Bug-6 fix: pending 不是终态
if row and row["status"] in ("done", "failed", "cancelled", "review"):
logger.info("Retry skip: task %s already %s (agent=%s)",
task_id, row["status"], agent_id)
# on_complete = wrapped_on_complete,会 release counter