From 19aae06c7dbadd539fb527f9613421022512d7d3 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Mon, 25 May 2026 13:23:15 +0800 Subject: [PATCH] auto-sync: 2026-05-25 13:23:15 --- src/daemon/spawner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/spawner.py b/src/daemon/spawner.py index a62b9e4..8c6caf2 100644 --- a/src/daemon/spawner.py +++ b/src/daemon/spawner.py @@ -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