thewca / wca-live

Platform for running WCA competitions and sharing live results with the world
https://live.worldcubeassociation.org
70 stars 23 forks source link

Manual refreshing was required to get result updates during 3x3 Finals #177

Open dunkOnIT opened 1 year ago

dunkOnIT commented 1 year ago

Several users have reported this, and I also experienced it myself - results stopped updated automatically for clients, and a refresh (F5) was required to see more results. It would be good to understand the cause of this behaviour if possible.

dunkOnIT commented 1 year ago

It is possible this was due to many people having WCA Live on their second monitors/out of focus.

  1. I assume there is no way to keep updating results even when out of focus?
  2. If no to (1), perhaps we can have an event that triggers a sync when WCA Live comes into focus?
jonatanklosko commented 1 year ago

I assume there is no way to keep updating results even when out of focus?

The results definitely do update out of focus, so that's not it.

For me the updates worked until the last entered attempt. I don't have a sure guess as to why that was. Technically this could happen if a node went down and basically a realtime event was missed in the cluster, but iirc infrastructure was looking stable during finals. This could also happen if the websocket was disconnected for whatever reason, though it does reconnect, so it's a small window to miss the event.

I'm not sure if there's anything particularly actionable. One thing worth checking would be spawning a huge number of instances (20/30) and verifying that they are indeed properly connected to each other.

maxidragon commented 1 month ago

This also happened to me during the Euros 3x3 finals. I had to refresh after almost every solve