summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/server
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-05 15:03:51 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-07 13:36:04 +0000
commit9500cf65a7c4e18ae4b994037f5b6b41af4b6dd9 (patch)
treec747108de3a91109ad9aea6e511f919cfad3262c /bitbake/lib/bb/server
parentf8f45ebde4ffa60ec1777976cb8b0020cdc11929 (diff)
downloadpoky-9500cf65a7c4e18ae4b994037f5b6b41af4b6dd9.tar.gz
bitbake: server/process: Don't send heartbeats when no idle functions
If there are no idle functions present, don't sent heartbeat events. These are only meant to happen while builds are active. (Bitbake rev: 9a2d5e63b07c3912838781776c61f0f1ac9640e1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/server')
-rw-r--r--bitbake/lib/bb/server/process.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py
index ad4035a738..b627ae0ab6 100644
--- a/bitbake/lib/bb/server/process.py
+++ b/bitbake/lib/bb/server/process.py
@@ -477,7 +477,7 @@ class ProcessServer():
477 477
478 # Create new heartbeat event? 478 # Create new heartbeat event?
479 now = time.time() 479 now = time.time()
480 if bb.event._heartbeat_enabled and now >= self.next_heartbeat: 480 if items and bb.event._heartbeat_enabled and now >= self.next_heartbeat:
481 # We might have missed heartbeats. Just trigger once in 481 # We might have missed heartbeats. Just trigger once in
482 # that case and continue after the usual delay. 482 # that case and continue after the usual delay.
483 self.next_heartbeat += self.heartbeat_seconds 483 self.next_heartbeat += self.heartbeat_seconds