buildman: clarify queue metrics from job state metrics

This commit is contained in:
Jimmy Zelinskie 2015-02-17 12:23:08 -05:00
parent ffb897dfe6
commit 935db5c766

View file

@ -89,7 +89,7 @@ class BuilderServer(object):
tasks = [ tasks = [
Task(self._initialize(loop, host, websocket_port, controller_port, ssl)), Task(self._initialize(loop, host, websocket_port, controller_port, ssl)),
Task(self._metrics_updater()), Task(self._queue_metrics_updater()),
] ]
try: try:
@ -179,7 +179,7 @@ class BuilderServer(object):
self._queue.incomplete(job_item, restore_retry=True, retry_after=0) self._queue.incomplete(job_item, restore_retry=True, retry_after=0)
@trollius.coroutine @trollius.coroutine
def _metrics_updater(self): def _queue_metrics_updater(self):
while self._current_status == 'running': while self._current_status == 'running':
yield From(trollius.sleep(30)) yield From(trollius.sleep(30))
self._queue.update_metrics() self._queue.update_metrics()