summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2022-03-22 11:40:51 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-23 12:08:56 +0000
commit93eb983e7936c7592588219e8a548da9b81bb5b2 (patch)
tree670553bc1713bb475b45efcdbad92dcb9e29a30b /bitbake
parent3e314814bf98f32ea8ce92d4d97e0118b98c3dfb (diff)
downloadpoky-93eb983e7936c7592588219e8a548da9b81bb5b2.tar.gz
bitbake: 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: 2e47346b95b09d7ab8f0603e2d62cfb549dc1f5c) (Bitbake rev: dcf52157d3635925491783be656c6b76d1efe1a4) 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.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index 50dd4229da..b2e7520ee7 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -623,7 +623,8 @@ def main(server, eventHandler, params, tf = TerminalFilter):
623 warnings = 0 623 warnings = 0
624 taskfailures = [] 624 taskfailures = []
625 625
626 printinterval = 5000 626 printintervaldelta = 10 * 60 # 10 minutes
627 printinterval = printintervaldelta
627 lastprint = time.time() 628 lastprint = time.time()
628 629
629 termfilter = tf(main, helper, console_handlers, params.options.quiet) 630 termfilter = tf(main, helper, console_handlers, params.options.quiet)
@@ -633,7 +634,7 @@ def main(server, eventHandler, params, tf = TerminalFilter):
633 try: 634 try:
634 if (lastprint + printinterval) <= time.time(): 635 if (lastprint + printinterval) <= time.time():
635 termfilter.keepAlive(printinterval) 636 termfilter.keepAlive(printinterval)
636 printinterval += 5000 637 printinterval += printintervaldelta
637 event = eventHandler.waitEvent(0) 638 event = eventHandler.waitEvent(0)
638 if event is None: 639 if event is None:
639 if main.shutdown > 1: 640 if main.shutdown > 1:
@@ -664,7 +665,7 @@ def main(server, eventHandler, params, tf = TerminalFilter):
664 665
665 if isinstance(event, logging.LogRecord): 666 if isinstance(event, logging.LogRecord):
666 lastprint = time.time() 667 lastprint = time.time()
667 printinterval = 5000 668 printinterval = printintervaldelta
668 if event.levelno >= bb.msg.BBLogFormatter.ERRORONCE: 669 if event.levelno >= bb.msg.BBLogFormatter.ERRORONCE:
669 errors = errors + 1 670 errors = errors + 1
670 return_value = 1 671 return_value = 1