From 59aba935145b2b9cb3e8a2107ddbd2b4359ab9d7 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Wed, 17 Jun 2015 14:11:22 -0400 Subject: [PATCH] builder: update heartbeat timestamp on log message --- buildman/component/buildcomponent.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildman/component/buildcomponent.py b/buildman/component/buildcomponent.py index c4c8544d1..5b05f36b7 100644 --- a/buildman/component/buildcomponent.py +++ b/buildman/component/buildcomponent.py @@ -195,6 +195,9 @@ class BuildComponent(BaseComponent): def _on_log_message(self, phase, json_data): """ Tails log messages and updates the build status. """ + # Update the heartbeat. + self._last_heartbeat = datetime.datetime.utcnow() + # Parse any of the JSON data logged. docker_data = {} if json_data: