aboutsummaryrefslogtreecommitdiff
path: root/scripts/guix-build-coordinator.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/guix-build-coordinator.in')
-rw-r--r--scripts/guix-build-coordinator.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/guix-build-coordinator.in b/scripts/guix-build-coordinator.in
index ae6e0d4..39c6dad 100644
--- a/scripts/guix-build-coordinator.in
+++ b/scripts/guix-build-coordinator.in
@@ -224,11 +224,15 @@
(simple-format #t "derivation name: ~A
priority: ~A
processed?: ~A
+canceled?: ~A
"
(assoc-ref build-details "derivation-name")
(assoc-ref build-details "priority")
(if (assoc-ref build-details "processed")
"yes"
+ "no")
+ (if (assoc-ref build-details "canceled")
+ "yes"
"no"))
(let ((derivation-inputs
@@ -310,6 +314,17 @@ processed?: ~A
(assoc-ref build "blocked_count")
(assoc-ref build "derivation_name")))
(vector->list (assoc-ref response "builds"))))))
+ (("build" "cancel" rest ...)
+ (let ((opts (parse-options (append %build-options
+ %base-options)
+ (append %build-option-defaults
+ %client-option-defaults
+ %base-option-defaults)
+ rest)))
+ (match (assq-ref opts 'arguments)
+ ((build-id)
+ (send-cancel-build-request (assq-ref opts 'coordinator)
+ build-id)))))
(("build" rest ...)
(let ((opts (parse-options (append %build-options
%base-options)