Add reliable execution reporting and coordinated dashboard views
This commit is contained in:
+3
-1
@@ -119,7 +119,9 @@ def run_queued(cfg,message,thread_id,renew,on_thread,on_receipt=lambda value:Non
|
||||
terminal_failure=None
|
||||
# A separate history reader can transiently classify an active desktop
|
||||
# turn as interrupted. Require a stable error before publishing failure.
|
||||
stable_failure=terminal_failure is not None and time.monotonic()-terminal_failure[1]>=10
|
||||
stable_failure=(terminal_failure is not None and time.monotonic()-terminal_failure[1]>=10
|
||||
and turn['status']=='failed' and bool(turn.get('error'))
|
||||
and turn.get('completedAt') is not None)
|
||||
if (texts and turn['status']=='completed') or stable_failure:
|
||||
success=turn['status']=='completed' and bool(texts)
|
||||
return {'text':redact('\n\n'.join(texts)) if texts else '同一会话本轮未产生可确认的最终回复。',
|
||||
|
||||
Reference in New Issue
Block a user