summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-13 09:45:16 +0200
committerErich Eckner <git@eckner.net>2018-06-13 09:45:16 +0200
commit3359e6f1e145781a6fcc1956bd5afa5df5bd2002 (patch)
tree87d1071718887a1c3ded67db19e46d0b317d34c1
parent425212a0e3cd0884971a6aa367be2fb49f1acba5 (diff)
downloadbuilder-3359e6f1e145781a6fcc1956bd5afa5df5bd2002.tar.xz
bin/get-assignment: same-arch should be less valued than last_trial
-rwxr-xr-xbin/get-assignment2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/get-assignment b/bin/get-assignment
index f74820f..365eea5 100755
--- a/bin/get-assignment
+++ b/bin/get-assignment
@@ -191,9 +191,9 @@ next_building=$(
printf ' GROUP BY `build_assignments`.`id`'
printf ' ORDER BY'
printf ' `requested` DESC,'
- printf ' `architectures`.`id`=`build_assignments`.`architecture` DESC,'
printf ' `priority` DESC,'
printf ' `last_trial`,'
+ printf ' `architectures`.`id`=`build_assignments`.`architecture` DESC,'
printf ' `part_of_loop`,'
printf ' `build_assignments`.`id`'
printf ' LIMIT 1'