From 95c42945607c2d50789fa7f8fde1e4eeec010b04 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 7 Jul 2015 14:08:46 +0200 Subject: [PATCH] Allow cancelling builds marked as busy Note that if there are active build *steps*, this won't cancel them. --- src/lib/Hydra/Helper/Nix.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Helper/Nix.pm b/src/lib/Hydra/Helper/Nix.pm index 23f807dd..0266d314 100644 --- a/src/lib/Hydra/Helper/Nix.pm +++ b/src/lib/Hydra/Helper/Nix.pm @@ -424,7 +424,7 @@ sub getTotalShares { sub cancelBuilds($$) { my ($db, $builds) = @_; return txn_do($db, sub { - $builds = $builds->search({ finished => 0, busy => 0 }); + $builds = $builds->search({ finished => 0 }); my $n = $builds->count; my $time = time(); $builds->update(