[oe-commits] [bitbake] 09/15: server/process: Increase server startup time delay
git at git.openembedded.org
git at git.openembedded.org
Mon Feb 25 22:28:30 UTC 2019
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch 1.38
in repository bitbake.
commit 64055fdb0d8485b40ba710a762e9a0af5c4540b4
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Sun Dec 2 19:18:14 2018 +0000
server/process: Increase server startup time delay
On loaded production systems we've seen bitbake server take over
40s to start up. Increase the timeout to 90s which tries to avoid
failures in selftests.
The delays come from setting up the inotify watches (31s) so can't
really be avoided.
After 5s delay we now warn the user we're waiting for 90s so the
interactive exeperience shouldn't be much changed and its very
unlikely the user would see that anyway.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/server/process.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index 0c6351d..a76b0a5 100644
--- a/lib/bb/server/process.py
+++ b/lib/bb/server/process.py
@@ -398,7 +398,10 @@ class BitBakeServer(object):
self.bitbake_lock.close()
ready = ConnectionReader(self.readypipe)
- r = ready.poll(30)
+ r = ready.poll(5)
+ if not r:
+ bb.note("Bitbake server didn't start within 5 seconds, waiting for 90")
+ r = ready.poll(90)
if r:
r = ready.get()
if not r or r != "ready":
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list