Announce an acknowledged node failure on the bus

Clearing a node's last error on the engine published nothing, so a second
browser kept the marker until its next snapshot. One event carries the
qualified node; the receiving client drops the marker without refetching.
This commit is contained in:
2026-08-25 22:33:09 +02:00
parent 36aa933a00
commit c5d6db2dbb
4 changed files with 49 additions and 0 deletions
+9
View File
@@ -779,6 +779,15 @@ def acknowledge_node_error(
raise HTTPException(
status_code=404, detail=f"No node named '{node_id}' in flow '{name}'"
) from None
# Another browser holds the same marker and has no reason to refetch, so it
# would keep showing a failure that is gone until its next snapshot.
event_bus.publish(
{
"type": "node_error_acknowledged",
"node": f"{name}.{node_id}",
"ts": time.time(),
}
)
return Message(message=f"Cleared the failure on '{node_id}'")