Include "running" in the queue length 28/181828/1
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Tue, 12 Sep 2017 15:40:51 +0000 (17:40 +0200)
committerAleksander Mistewicz <a.mistewicz@samsung.com>
Wed, 27 Sep 2017 16:58:33 +0000 (18:58 +0200)
Change-Id: Ie93628aab3177e1827595a40d5232f0c055a49aa

tsp/watchers/watch_target_queues.sh

index 2d4df31..53dfd80 100755 (executable)
@@ -29,7 +29,7 @@ TIMES="$(mktemp)"
 for ltarget in $TARGET_LIST
 do
     target="${ltarget#*-}"
-    COUNT="$(tsrun_target "${target}" | grep queued | wc -l)"
+    COUNT="$(tsrun_target "${target}" | grep "queued\|running" | wc -l)"
     # Report queue length
     post_prom "tsrun_queued_${target}" "$COUNT" "Length of ${target} queue"
     TIME="$(tsrun_target "${target}" -i | grep -o "[0-9]\+\.[0-9]\+")"