summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2019-03-23 12:48:09 +0100
committerHelmut Grohne <helmut@subdivi.de>2019-03-23 12:48:09 +0100
commit67c979e59f730a9a18b99844080ca721f6ea12d6 (patch)
tree29a163d4efc675c9a2631fb528b468681ea7a603
parent09e5bba31b864da3e86b2747da9bc6cfebe90cbe (diff)
downloadcrossqa-67c979e59f730a9a18b99844080ca721f6ea12d6.tar.gz
build.py: prefer older buildrequests
-rwxr-xr-xbuild.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.py b/build.py
index 8e1d763..d83686c 100755
--- a/build.py
+++ b/build.py
@@ -54,7 +54,7 @@ def main():
JOIN depcheck
ON d.architecture = depcheck.architecture
WHERE d.satisfiable = 1 AND depcheck.giveback = 0
- ORDER BY r.priority DESC, random() LIMIT 1;""")
+ ORDER BY r.priority DESC, r.requesttime ASC LIMIT 1;""")
row = cur.fetchone()
if not row:
cur.execute("""