diff options
author | Christopher Baines <mail@cbaines.net> | 2020-04-25 20:51:36 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-04-25 20:51:36 +0100 |
commit | b6373e42752780c5f5e7c6f8ee8d502c33a07646 (patch) | |
tree | 39938c8cddb739571d8f7ae715a36a4d1215398b | |
parent | b7a2f8d69de3e2776753a67f2f6f7f4dc72e5ec0 (diff) | |
download | build-coordinator-b6373e42752780c5f5e7c6f8ee8d502c33a07646.tar build-coordinator-b6373e42752780c5f5e7c6f8ee8d502c33a07646.tar.gz |
Respect the allocation plan ordering when providing builds to agents
-rw-r--r-- | guix-build-coordinator/datastore/sqlite.scm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/guix-build-coordinator/datastore/sqlite.scm b/guix-build-coordinator/datastore/sqlite.scm index b5a1225..2416b70 100644 --- a/guix-build-coordinator/datastore/sqlite.scm +++ b/guix-build-coordinator/datastore/sqlite.scm @@ -721,6 +721,7 @@ INNER JOIN build_allocation_plan WHERE build_allocation_plan.agent_id = :agent_id AND builds.processed = 0 AND builds.uuid NOT IN (SELECT build_id FROM allocated_builds) +ORDER BY build_allocation_plan.ordering ASC LIMIT :limit"))) (sqlite-bind-arguments |