Skip to content

fix: limit default run selection to most recent N runs on open#581

Closed
KomalDeep355 wants to merge 1 commit into
gradio-app:mainfrom
KomalDeep355:fix/limit-runs-on-open
Closed

fix: limit default run selection to most recent N runs on open#581
KomalDeep355 wants to merge 1 commit into
gradio-app:mainfrom
KomalDeep355:fix/limit-runs-on-open

Conversation

@KomalDeep355

Copy link
Copy Markdown

Fixes #573

Problem

When a project has many runs, all of them are selected on open, which makes the Trackio dashboard very slow.

Solution

Added a 'MAX_SELECTED_RUNS = 10' constant and a 'max_runs' parameter to 'get_runs_for_project()'. Only the most recent N runs are selected by default. All runs remain visible — only the default Selection is capped.

Changes

  • Added 'MAX_SELECTED_RUNS = 10' constant in 'server.py'
  • Updated 'get_runs_for_project()' to accept and apply 'max_runs'

@abidlabs

Copy link
Copy Markdown
Member

Thanks @KomalDeep355 but I think a better fix would be to solve the undelrhying issue of Trackio becoming slow, will look into it

@abidlabs abidlabs closed this Jun 10, 2026
@KomalDeep355

Copy link
Copy Markdown
Author

Thanks for the feedback @abidlabs! That makes sense — fixing the root cause is definitely the better approach. I'd love to help with that if possible. Could you point me to where the slowness originates in the codebase? Happy to take a look and submit a follow-up PR.

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.

Only select at most N runs on open

2 participants