Repository navigation
Refresh the leaderboard's data without restarting the Space - #31
Merged
Merged
Conversation
This was referenced Nov 13, 2026
The leaderboard restarted its Space every 5 minutes to pick up new results. Each restart took the page down and killed any submission in progress. A background job now downloads the results and requests datasets into a new snapshot every COILBENCH_LEADERBOARD_INTERVAL seconds (src/live.py). Handlers read the current snapshot each time they run, and private load events redraw the table and the queue on each page load. The Explore pickers fill on each sub-tab's first visit, so loading a page still downloads no coilsets. Results go to the Hub cache instead of a local_dir, so a result deleted from the dataset disappears too. A failed refresh keeps the last snapshot, and a failed first download leaves the board empty until the next refresh instead of restarting the Space.
jhewers-pf
force-pushed
the
jhewers-pf-leaderboard-refresh
branch
from
November 13, 2026 12:59
bdeb69a to
ff57507
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The leaderboard restarted its Space every 5 minutes to pick up new results. Each restart took the page down and killed any submission in progress.
src/live.py: a background job downloads the results and requests datasets into a new snapshot everyCOILBENCH_LEADERBOARD_INTERVALseconds.loadevents redraw the table and the queue on each page load.Testing
LiveDataand the table reading live frames.