buildman: fix ER failing to heartbeat

This commit is contained in:
Jimmy Zelinskie 2015-06-22 18:12:20 -04:00
parent d5e4b35a78
commit 197f3b9b85

View file

@ -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