Skip to content

Commit e7a337a

Browse files
committed
revert removal of queue ordering
1 parent d77fc26 commit e7a337a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/src/request_handlers/status_page_new.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ pub async fn handle_status_page_new(ctxt: Arc<SiteCtxt>) -> anyhow::Result<statu
1515
let index = conn.load_benchmark_request_index().await?;
1616

1717
// The queue contains any in-progress request(s) and then the following requests in queue order
18+
// We reverse so that it starts with the request that will be benchmarked the latest
1819
let mut queue: Vec<status_new::BenchmarkRequest> = build_queue(&*conn, &index)
1920
.await?
2021
.into_iter()
2122
.map(|req| request_to_ui(&req, HashMap::new()))
2223
.collect();
23-
24+
queue.reverse();
2425
// And then we add N most recently completed requests to it
2526
let completed = conn.get_last_n_completed_benchmark_requests(10).await?;
2627
queue.extend(

0 commit comments

Comments
 (0)