Skip to content

Conversation

@Mukrosz
Copy link

@Mukrosz Mukrosz commented Jul 16, 2025

--- Problem:
The dashboard's WebSocket stats polling loop uses a guard flag "statsRequestInProgress" to avoid overlapping requests. However, the flag is never reset to "false" after a stats update arrives, causing the system to continuously log:

⏳ Waiting for in-progress stats request...

indefinitely. As a result, API endpoints like /api/points and /api/performance stay stale until the web service is restarted.

--- Fix:
Inside the WebSocket message handler, this patch adds:
statsRequestInProgress = false;
after successfully processing a "stats" update, ensuring the next polling cycle can continue.

Tested on:

  • Debian 12.5, SLES 15.6 host
  • Synchronizer container running via systemd and Docker
  • Verified live updates to API endpoints and web dashboard after patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant