aboutsummaryrefslogtreecommitdiff
path: root/guix-build-coordinator
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-04-16 21:13:34 +0100
committerChristopher Baines <mail@cbaines.net>2020-04-16 21:13:34 +0100
commit26cf86e1bee82f87367598ededa0dbfedab76552 (patch)
tree966a851983943f715ef1e0c98aec4de10cd6fa6f /guix-build-coordinator
parentf1a66939eb6aa7dc2283510e74dd640141900e6c (diff)
downloadbuild-coordinator-26cf86e1bee82f87367598ededa0dbfedab76552.tar
build-coordinator-26cf86e1bee82f87367598ededa0dbfedab76552.tar.gz
Include finished builds in the agent for build query
Diffstat (limited to 'guix-build-coordinator')
-rw-r--r--guix-build-coordinator/datastore/sqlite.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/guix-build-coordinator/datastore/sqlite.scm b/guix-build-coordinator/datastore/sqlite.scm
index 08f70e9..76b691b 100644
--- a/guix-build-coordinator/datastore/sqlite.scm
+++ b/guix-build-coordinator/datastore/sqlite.scm
@@ -547,7 +547,10 @@ WHERE allocated_builds.agent_id = :agent_id")))
"
SELECT agent_id
FROM allocated_builds
-WHERE build_id = :build_id")))
+WHERE allocated_builds.build_id = :build_id
+UNION SELECT agent_id
+FROM build_results
+WHERE build_results.build_id = :build_id")))
(sqlite-bind-arguments
statement