mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 21:49:33 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
07eca06c71
commit
33a08f7b8f
@@ -599,7 +599,8 @@ def main(server, eventHandler, params, tf = TerminalFilter):
|
|||||||
warnings = 0
|
warnings = 0
|
||||||
taskfailures = []
|
taskfailures = []
|
||||||
|
|
||||||
printinterval = 5000
|
printintervaldelta = 10 * 60 # 10 minutes
|
||||||
|
printinterval = printintervaldelta
|
||||||
lastprint = time.time()
|
lastprint = time.time()
|
||||||
|
|
||||||
termfilter = tf(main, helper, console_handlers, params.options.quiet)
|
termfilter = tf(main, helper, console_handlers, params.options.quiet)
|
||||||
@@ -609,7 +610,7 @@ def main(server, eventHandler, params, tf = TerminalFilter):
|
|||||||
try:
|
try:
|
||||||
if (lastprint + printinterval) <= time.time():
|
if (lastprint + printinterval) <= time.time():
|
||||||
termfilter.keepAlive(printinterval)
|
termfilter.keepAlive(printinterval)
|
||||||
printinterval += 5000
|
printinterval += printintervaldelta
|
||||||
event = eventHandler.waitEvent(0)
|
event = eventHandler.waitEvent(0)
|
||||||
if event is None:
|
if event is None:
|
||||||
if main.shutdown > 1:
|
if main.shutdown > 1:
|
||||||
@@ -640,7 +641,7 @@ def main(server, eventHandler, params, tf = TerminalFilter):
|
|||||||
|
|
||||||
if isinstance(event, logging.LogRecord):
|
if isinstance(event, logging.LogRecord):
|
||||||
lastprint = time.time()
|
lastprint = time.time()
|
||||||
printinterval = 5000
|
printinterval = printintervaldelta
|
||||||
if event.levelno >= bb.msg.BBLogFormatter.ERROR:
|
if event.levelno >= bb.msg.BBLogFormatter.ERROR:
|
||||||
errors = errors + 1
|
errors = errors + 1
|
||||||
return_value = 1
|
return_value = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user