From 52ce6627108954cadad7f13e3d2fe2d0a41af76f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 21 Sep 2013 20:51:43 +0200 Subject: [PATCH] hydra-queue-runner: Don't kill builds we just started --- src/script/hydra-queue-runner | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/script/hydra-queue-runner b/src/script/hydra-queue-runner index 51675287..e63c0315 100755 --- a/src/script/hydra-queue-runner +++ b/src/script/hydra-queue-runner @@ -28,7 +28,7 @@ sub unlockDeadBuilds { my $pid = $build->locker; my $unlock = 0; if ($pid == $$) { - if (!defined $lastTime || $build->starttime < $lastTime - 600) { + if (!defined $lastTime || $build->starttime < $lastTime - 180) { $unlock = 1; } } elsif (kill(0, $pid) != 1) { # see if we can signal the process @@ -230,9 +230,9 @@ while (1) { unlockDeadBuilds; - checkBuilds; - $lastTime = time(); + + checkBuilds; }; warn $@ if $@;