summaryrefslogtreecommitdiff
path: root/src/buildstream/_scheduler/scheduler.py
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2020-10-13 16:55:36 +0200
committerJürg Billeter <j@bitron.ch>2020-10-26 12:19:31 +0000
commit4cd14b1097fff9fa35ecc84c831de8966bf13a03 (patch)
tree14a22fb8fa0595f5c7ff093e0ece8e77bb3a7af6 /src/buildstream/_scheduler/scheduler.py
parent8a743485981b52ae916279099880fe1c2a83a59e (diff)
downloadbuildstream-4cd14b1097fff9fa35ecc84c831de8966bf13a03.tar.gz
scheduler.py: Invoke the ticker callback at the end of run()juerg/scheduler-ticker
This allows the frontend to render pending messages.
Diffstat (limited to 'src/buildstream/_scheduler/scheduler.py')
-rw-r--r--src/buildstream/_scheduler/scheduler.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buildstream/_scheduler/scheduler.py b/src/buildstream/_scheduler/scheduler.py
index 5f0d69a06..903cd0be9 100644
--- a/src/buildstream/_scheduler/scheduler.py
+++ b/src/buildstream/_scheduler/scheduler.py
@@ -154,6 +154,9 @@ class Scheduler:
self.loop.run_forever()
self.loop.close()
+ # Invoke the ticker callback a final time to render pending messages
+ self._ticker_callback()
+
# Stop watching casd
_watcher.remove_child_handler(self._casd_process.pid)
self._casd_process = None