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