Skip to content

GEN-2898 prioritize queued runs in default ordering - #391

Merged
exe-dev-github-integration[bot] merged 3 commits into
mainfrom
GEN-2898-prioritize-run-ordering
Nov 11, 2026
Merged

exe-dev-github-integration[bot] merged 3 commits into
mainfrom
GEN-2898-prioritize-run-ordering

Conversation

@asselstine

Copy link
Copy Markdown
Collaborator

Summary

  • Default run lists prioritize queued, reserved, and starting runs, then running, then all other states, with newest-created and descending ID tie-breaks within each group.
  • Default keyset cursors include priority and preserve legacy two-field cursor behavior; explicit sorts and latest-run/scheduler logic remain unchanged.
  • Add tenant-wide and job-scoped matching expression indexes, update API docs/client, and use the default ordering in the run-detail switcher.

Validation

  • npm test passed on Node 24.12.0 / npm 11.19.0 at commit 3ce3a0958b2163ba5d7df13949e024c6b442be28 (isolated PostgreSQL, Chromium, backend, browser, and proxy lanes).
  • EXPLAIN (ANALYZE, BUFFERS) on 50,000 synthetic local runs used the priority indexes for global, job, project, state-filtered, and later-page queries; none required a top-level sort.

@linear

linear Bot commented Nov 11, 2026

Copy link
Copy Markdown

GEN-2898

@exe-dev-github-integration
exe-dev-github-integration Bot marked this pull request as ready for review November 11, 2026 19:03
@asselstine
asselstine force-pushed the GEN-2898-prioritize-run-ordering branch from 3ce3a09 to 2a23ce8 Compare November 11, 2026 19:14
@exe-dev-github-integration
exe-dev-github-integration Bot merged commit 11749f0 into main Nov 11, 2026
2 checks passed
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