buildman: fix ER failing to heartbeat
This commit is contained in:
parent
d5e4b35a78
commit
197f3b9b85
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Reference in a new issue