Skip to content

Commit 48559ff

Browse files
authored
Merge pull request #2299 from Kobzol/sort-jobs
Sort jobs of in-progress benchmark requests by their creation date
2 parents c4396b6 + 6d8ffe0 commit 48559ff

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)