Skip to content

Commit 6d8ffe0

Browse files
committed
Sort jobs of in-progress benchmark requests by their creation date
1 parent c4396b6 commit 6d8ffe0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

database/src/pool/postgres.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,10 @@ impl PostgresConnection {
773773
SELECT tag FROM parents
774774
)
775775
-- Only get the jobs of in_progress requests
776-
SELECT * FROM job_queue INNER JOIN requests ON job_queue.request_tag = requests.tag
776+
SELECT *
777+
FROM job_queue
778+
INNER JOIN requests ON job_queue.request_tag = requests.tag
779+
ORDER BY created_at ASC
777780
")).await.unwrap(),
778781
// Load pending benchmark requests, along with information whether their parent is
779782
// completed or not

0 commit comments

Comments
 (0)