summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/server/process.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py
index 3e99bcef8f..155e8d131f 100644
--- a/bitbake/lib/bb/server/process.py
+++ b/bitbake/lib/bb/server/process.py
@@ -367,7 +367,12 @@ class ProcessServer():
367 self.next_heartbeat = now + self.heartbeat_seconds 367 self.next_heartbeat = now + self.heartbeat_seconds
368 if hasattr(self.cooker, "data"): 368 if hasattr(self.cooker, "data"):
369 heartbeat = bb.event.HeartbeatEvent(now) 369 heartbeat = bb.event.HeartbeatEvent(now)
370 bb.event.fire(heartbeat, self.cooker.data) 370 try:
371 bb.event.fire(heartbeat, self.cooker.data)
372 except Exception as exc:
373 if not isinstance(exc, bb.BBHandledException):
374 logger.exception('Running heartbeat function')
375 self.quit = True
371 if nextsleep and now + nextsleep > self.next_heartbeat: 376 if nextsleep and now + nextsleep > self.next_heartbeat:
372 # Shorten timeout so that we we wake up in time for 377 # Shorten timeout so that we we wake up in time for
373 # the heartbeat. 378 # the heartbeat.