[Piuparts-devel] [Git][debian/piuparts][develop] slave_bin: on stop, show what's keeping the slaves busy, to identify packages...

Holger Levsen gitlab at salsa.debian.org
Tue Feb 5 20:03:18 GMT 2019


Holger Levsen pushed to branch develop at Debian / piuparts


Commits:
259ab12e by Holger Levsen at 2019-02-05T20:03:06Z
slave_bin: on stop, show what's keeping the slaves busy, to identify packages with a very long installation time.

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


2 changed files:

- debian/changelog
- slave-bin/slave_stop.in


Changes:

=====================================
debian/changelog
=====================================
@@ -18,6 +18,10 @@ piuparts (0.97) UNRELEASED; urgency=medium
               Save some memory
        - make_kprs function: do not concat str, simplify 'if' statement.
 
+  [ Holger Levsen ]
+  * slave_bin: on stop, show what's keeping the slaves busy, to identify
+    packages with a very long installation time.
+
  -- Holger Levsen <holger at debian.org>  Sun, 13 Jan 2019 16:58:44 +0100
 
 piuparts (0.96) unstable; urgency=medium


=====================================
slave-bin/slave_stop.in
=====================================
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 
-# Copyright 2017 Holger Levsen (holger at layer-acht.org)
+# Copyright 2017-2019 Holger Levsen (holger at layer-acht.org)
 #
 # This program is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by the
@@ -45,6 +45,8 @@ while pgrep --full '/usr/bin/python @sharedir@/piuparts/piuparts-slave' > /dev/n
 	echo -n "$(date -u +%T) - "
 	pgrep --full '/usr/bin/python @sharedir@/piuparts/piuparts-slave' | xargs -r echo -n "slaves running: "
 	SLEEP=$(( $i * $i ))
+	echo "slaves are busy with:"
+	ps fax | grep -v grep | grep '/usr/bin/python @sbindir@/piuparts' | awk '{print $NF}'
 	echo -n " sleeping ${SLEEP}sec now..."
 	for j in $(seq 1 $SLEEP) ; do
 		sleep 1



View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/259ab12e9959ddbe16a46321137c5ef1918c04d3

-- 
View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/259ab12e9959ddbe16a46321137c5ef1918c04d3
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/piuparts-devel/attachments/20190205/1aef76e7/attachment-0001.html>


More information about the Piuparts-devel mailing list