fix: keep update viewers responsive under input backpressure

This commit is contained in:
VAIO73
2026-10-26 07:57:20 +00:00
parent 723f53a1f1
commit 744c0165e2
5 changed files with 250 additions and 8 deletions
+4 -3
View File
@@ -171,9 +171,10 @@ def lxc_update_viewer(ws, run_id):
offset = view['offset']
if view['revision'] != revision:
revision = view['revision']
if view['interaction']:
ws.send(json.dumps({'type': 'web_interaction',
'interaction': view['interaction']}))
# A second viewer must also dismiss a question already
# answered elsewhere, or cleared when the job ends.
ws.send(json.dumps({'type': 'web_interaction',
'interaction': view['interaction']}))
if view['state'] == 'complete':
ws.send(json.dumps({'type': 'script_complete', 'exit_code': view['exit_code']}))
break