From 197f3b9b85360a81c16f0f4cde19da5db393f157 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Mon, 22 Jun 2015 18:12:20 -0400 Subject: [PATCH] buildman: fix ER failing to heartbeat --- buildman/component/buildcomponent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildman/component/buildcomponent.py b/buildman/component/buildcomponent.py index 51819e95b..bc04c7b28 100644 --- a/buildman/component/buildcomponent.py +++ b/buildman/component/buildcomponent.py @@ -359,10 +359,10 @@ class BuildComponent(BaseComponent): def _on_heartbeat(self): """ Updates the last known heartbeat. """ - if not self._current_job or self._component_status == ComponentStatus.TIMED_OUT: + if self._component_status == ComponentStatus.TIMED_OUT: return - logger.debug('Got heartbeat for build %s', self._current_job.repo_build.uuid) + logger.debug('got heartbeat on realm %s', self.builder_realm) self._last_heartbeat = datetime.datetime.utcnow() @trollius.coroutine