Files
romm/backend/endpoints/sockets
Georges-Antoine Assi e7c8ff920d refactor(scan): gate failure reporting on the scan's own flag
The exception allowlist and the meta flag decided the same thing twice.
Every terminal path in `scan_platforms` goes through `finish`, so the flag
alone records whether the scan spoke for itself, and the allowlist only
narrowed that: the setup before the try block has no exit path of its own,
so a failure there was filtered out and left the clients showing a scan
that no longer exists.

Gate on the flag and keep the table for wording, with a fallback so an
unlisted exception degrades to a generic reason instead of silence. A
user-initiated stop still stays quiet, since the work horse resets SIGTERM
to SIG_DFL and never runs the failure callback.

Set the flag before the emit to close the window where SIGALRM landing
between the two produced the double report the flag exists to prevent, and
read it back with `get_meta` rather than a full `refresh`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-10 12:04:00 -04:00
..
2026-05-17 12:43:33 -04:00
2026-03-14 22:13:38 -04:00