diff options
author | Ross Burton <ross@burtonini.com> | 2022-03-21 17:01:04 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-23 12:08:56 +0000 |
commit | 3e314814bf98f32ea8ce92d4d97e0118b98c3dfb (patch) | |
tree | c80737f935ab4c0e44f96b0dfe0ea1c7d5ae005b /bitbake | |
parent | c5f5de1ad57af0ddfc4abfd40f939117b899d2dc (diff) | |
download | poky-3e314814bf98f32ea8ce92d4d97e0118b98c3dfb.tar.gz |
bitbake: bitbake: knotty: display active tasks when printing keepAlive() message
In interactive bitbake sessions it is obvious what tasks are running
when one of them hangs or otherwise takes a long time. However, in
non-interactive sessions (such as automated builds) bitbake just prints
a message saying that it is "still alive" with no clues as to what tasks
are active still.
By simply listing the active tasks when printing the keep alive message,
we don't need to parse the bitbake log to identify which of the tasks
is still active and has presumably hung.
(Bitbake rev: f9f57fb7d2c8a13df1eb9d5b9766f15e229dcf97)
(Bitbake rev: 30f6c3f175617beea8e8bb75dcf255611e3fc2fd)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/ui/knotty.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 78888f8bdd..50dd4229da 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
@@ -228,7 +228,9 @@ class TerminalFilter(object): | |||
228 | 228 | ||
229 | def keepAlive(self, t): | 229 | def keepAlive(self, t): |
230 | if not self.cuu: | 230 | if not self.cuu: |
231 | print("Bitbake still alive (%ds)" % t) | 231 | print("Bitbake still alive (no events for %ds). Active tasks:" % t) |
232 | for t in self.helper.running_tasks: | ||
233 | print(t) | ||
232 | sys.stdout.flush() | 234 | sys.stdout.flush() |
233 | 235 | ||
234 | def updateFooter(self): | 236 | def updateFooter(self): |