diff --git a/src/daemon/ticker.py b/src/daemon/ticker.py index 68819fa..2777c96 100644 --- a/src/daemon/ticker.py +++ b/src/daemon/ticker.py @@ -603,11 +603,15 @@ Project ID: {project_id} processed.append(agent_id) logger.info("Mention spawn success: %s (%d mentions)", agent_id, len(items)) else: - # spawn 失败 → 递增 retry_count + # spawn 返回 None(其他原因)→ 递增 retry_count for item in items: bb.mark_mention_retry(item["id"]) logger.warning("Mention spawn failed: %s, retrying next tick", agent_id) + except AgentBusyError: + # Agent 忙,不递增 retry_count,等下次 tick 自然重试 + logger.info("Mention spawn skipped: %s busy, will retry next tick", agent_id) + except Exception as e: logger.exception("Mention processing error for agent %s", agent_id) for item in items: