auto-sync: 2026-05-28 13:07:27

This commit is contained in:
cfdaily
2026-05-28 13:07:27 +08:00
parent d9c214254f
commit c77bb51786
+6
View File
@@ -236,6 +236,9 @@ class Dispatcher:
}
except AgentBusyError:
# v2.7.2: agent 被 counter 占用或冷却中
# v2.7.3: Mail spawn 失败时回退 working → pending
if is_mail and db_path:
self._mail_revert_to_pending(task.id, db_path)
self._record_routing(task, decision, "skipped", "Agent busy", _routing_db)
return {
"level": level.value,
@@ -245,6 +248,9 @@ class Dispatcher:
"reason": "Agent busy (concurrent limit or cooling down)",
}
except Exception as e:
# v2.7.3: Mail spawn 异常时也回退 working → pending
if is_mail and db_path:
self._mail_revert_to_pending(task.id, db_path)
self._record_routing(task, decision, "error", str(e), _routing_db)
return {
"level": level.value,