diff options
author | Ross Burton <ross@burtonini.com> | 2022-06-16 15:48:50 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-26 12:14:23 +0100 |
commit | 33a08f7b8f05235c3771c4bbd1ebd1e947bb6b4f (patch) | |
tree | fb77836b63ac597aed7d3efc6d98b6e98a760087 /bitbake/lib/bb/ui | |
parent | 07eca06c715dc08e1727e1df1b73062bbbc0c63b (diff) | |
download | poky-33a08f7b8f05235c3771c4bbd1ebd1e947bb6b4f.tar.gz |
bitbake: knotty: reduce keep-alive timeout from 5000s (83 minutes) to 10 minutes
The keep alive timeout is excessively long at 83 minutes (5000 seconds),
reduce this to 10 minutes: this should be long enough that it rarely
triggers in normal builds, but when it does it has useful information.
(Bitbake rev: a496a8952d8542ce814b13f460811d8849d25a3c)
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>
(cherry picked from commit dcf52157d3635925491783be656c6b76d1efe1a4)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui')
-rw-r--r-- | bitbake/lib/bb/ui/knotty.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 71c5a3e9db..d1f74389db 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
@@ -599,7 +599,8 @@ def main(server, eventHandler, params, tf = TerminalFilter): | |||
599 | warnings = 0 | 599 | warnings = 0 |
600 | taskfailures = [] | 600 | taskfailures = [] |
601 | 601 | ||
602 | printinterval = 5000 | 602 | printintervaldelta = 10 * 60 # 10 minutes |
603 | printinterval = printintervaldelta | ||
603 | lastprint = time.time() | 604 | lastprint = time.time() |
604 | 605 | ||
605 | termfilter = tf(main, helper, console_handlers, params.options.quiet) | 606 | termfilter = tf(main, helper, console_handlers, params.options.quiet) |
@@ -609,7 +610,7 @@ def main(server, eventHandler, params, tf = TerminalFilter): | |||
609 | try: | 610 | try: |
610 | if (lastprint + printinterval) <= time.time(): | 611 | if (lastprint + printinterval) <= time.time(): |
611 | termfilter.keepAlive(printinterval) | 612 | termfilter.keepAlive(printinterval) |
612 | printinterval += 5000 | 613 | printinterval += printintervaldelta |
613 | event = eventHandler.waitEvent(0) | 614 | event = eventHandler.waitEvent(0) |
614 | if event is None: | 615 | if event is None: |
615 | if main.shutdown > 1: | 616 | if main.shutdown > 1: |
@@ -640,7 +641,7 @@ def main(server, eventHandler, params, tf = TerminalFilter): | |||
640 | 641 | ||
641 | if isinstance(event, logging.LogRecord): | 642 | if isinstance(event, logging.LogRecord): |
642 | lastprint = time.time() | 643 | lastprint = time.time() |
643 | printinterval = 5000 | 644 | printinterval = printintervaldelta |
644 | if event.levelno >= bb.msg.BBLogFormatter.ERROR: | 645 | if event.levelno >= bb.msg.BBLogFormatter.ERROR: |
645 | errors = errors + 1 | 646 | errors = errors + 1 |
646 | return_value = 1 | 647 | return_value = 1 |