forked from lix-project/hydra
Allow cancelling builds marked as busy
Note that if there are active build *steps*, this won't cancel them.
This commit is contained in:
parent
35b7c4f82b
commit
95c4294560
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue