Skip to contentSkip to conversation

cooker.py: no bb.fatal() for pr server

PATCH In review Joe Slater 2 participants 2 messages Oct 30, 2018 – Oct 31, 2018

lore
Share & tools
lore

Joe Slater

author
#0 lore raw

PATCH 1/1 cooker.py: no bb.fatal() for pr server

Calls to bb.fatal() will block at this point of initialization.

---
 lib/bb/cooker.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
lib/bb/cooker.py +2 -1
index 71a0eba..2a3721b 100644
@@ -383,7 +383,8 @@ class BBCooker:
         try:
             self.prhost = prserv.serv.auto_start(self.data)
         except prserv.serv.PRServiceConfigError as e:
-            bb.fatal("Unable to start PR Server, exitting")
+            logger.error("Unable to start PR Server.  Continuing anyway...")
+            self.prhost = None
 
     def enableDataTracking(self):
         self.configuration.tracking = True
Signature · 1 line
2.7.4
#1 lore raw
Quoted 12 lines · Joe Slater

Calls to bb.fatal() will block at this point of initialization.

---
 lib/bb/cooker.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
lib/bb/cooker.py +0 -0
index 71a0eba..2a3721b 100644

lib/bb/cooker.py class BBCooker: · line 388

Quoted 7 lines
lib/bb/cooker.py +2 -1
@@ -383,7 +383,8 @@ class BBCooker:
         try:
             self.prhost = prserv.serv.auto_start(self.data)
         except prserv.serv.PRServiceConfigError as e:
-            bb.fatal("Unable to start PR Server, exitting")
+            logger.error("Unable to start PR Server.  Continuing anyway...")
+            self.prhost = None
 

Shouldn't we fix the blocking?

Cheers,

Richard