From 20c086c7c05eec732e7553b629f0ca2c030400e2 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Mon, 1 Jun 2026 00:15:49 +0800 Subject: [PATCH] auto-sync: 2026-06-01 00:15:49 --- src/daemon/spawner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/daemon/spawner.py b/src/daemon/spawner.py index 4ebe822..c9c3bc0 100644 --- a/src/daemon/spawner.py +++ b/src/daemon/spawner.py @@ -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