[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: actually kill parentless processes older than 12h because thats how long a single build may take

Holger Levsen holger at moszumanska.debian.org
Fri Mar 20 12:23:33 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 2f08165628cd5688808ca6e07fe39027a41de036
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Mar 20 13:21:22 2015 +0100

    reproducible: actually kill parentless processes older than 12h because thats how long a single build may take
---
 bin/reproducible_maintainance.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/reproducible_maintainance.sh b/bin/reproducible_maintainance.sh
index d0026e4..84624bb 100755
--- a/bin/reproducible_maintainance.sh
+++ b/bin/reproducible_maintainance.sh
@@ -125,7 +125,8 @@ if [ -s $RESULT ] ; then
 	echo
 	for PROCESS in $(cat $RESULT | cut -d " " -f1 | xargs echo) ; do
 		AGE=$(ps -p $PROCESS -o etimes= || echo 0)
-		if [ $AGE -gt 86400 ] ; then
+		# a single build may only take half a day, so...
+		if [ $AGE -gt 43200 ] ; then
 			sudo kill -9 $PROCESS 2>&1
 			echo "'kill -9 $PROCESS' done."
 		else

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list