summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/server
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/server')
-rw-r--r--bitbake/lib/bb/server/process.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py
index 586d46af88..91eb6e0ad9 100644
--- a/bitbake/lib/bb/server/process.py
+++ b/bitbake/lib/bb/server/process.py
@@ -382,7 +382,7 @@ class ProcessServer():
382 382
383 # Create new heartbeat event? 383 # Create new heartbeat event?
384 now = time.time() 384 now = time.time()
385 if now >= self.next_heartbeat: 385 if bb.event._heartbeat_enabled and now >= self.next_heartbeat:
386 # We might have missed heartbeats. Just trigger once in 386 # We might have missed heartbeats. Just trigger once in
387 # that case and continue after the usual delay. 387 # that case and continue after the usual delay.
388 self.next_heartbeat += self.heartbeat_seconds 388 self.next_heartbeat += self.heartbeat_seconds
@@ -396,7 +396,7 @@ class ProcessServer():
396 if not isinstance(exc, bb.BBHandledException): 396 if not isinstance(exc, bb.BBHandledException):
397 logger.exception('Running heartbeat function') 397 logger.exception('Running heartbeat function')
398 self.quit = True 398 self.quit = True
399 if nextsleep and now + nextsleep > self.next_heartbeat: 399 if nextsleep and bb.event._heartbeat_enabled and now + nextsleep > self.next_heartbeat:
400 # Shorten timeout so that we we wake up in time for 400 # Shorten timeout so that we we wake up in time for
401 # the heartbeat. 401 # the heartbeat.
402 nextsleep = self.next_heartbeat - now 402 nextsleep = self.next_heartbeat - now