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