Sort the pending builds by timestamp
So that builds that have been pending for a longer time are fetched first.
This commit is contained in:
parent
5124f3be3e
commit
63fc1917f8
1 changed files with 2 additions and 1 deletions
|
|
@ -493,7 +493,8 @@ WHERE builds.build_server_id = $1 AND
|
||||||
latest_build_status.status IN (
|
latest_build_status.status IN (
|
||||||
'scheduled', 'started'
|
'scheduled', 'started'
|
||||||
)
|
)
|
||||||
ORDER BY latest_build_status.status DESC -- 'started' first
|
ORDER BY latest_build_status.status DESC, -- 'started' first
|
||||||
|
latest_build_status.timestamp ASC
|
||||||
LIMIT 10000")
|
LIMIT 10000")
|
||||||
|
|
||||||
(map
|
(map
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue