auto-sync: 2026-05-21 22:32:49

This commit is contained in:
cfdaily
2026-05-21 22:32:49 +08:00
parent eff9037752
commit 715600c9e7
+4 -1
View File
@@ -338,7 +338,10 @@ curl -X POST http://{self.api_host}:{self.api_port}/api/projects/{project_id}/ta
# 完成回调(释放 counter 等)
if on_complete:
try:
await on_complete(agent_id, outcome)
result = on_complete(agent_id, outcome)
import asyncio
if asyncio.iscoroutine(result):
await result
except Exception:
logger.warning("on_complete callback failed for %s",
agent_id, exc_info=True)