Add preparing build node status item and change the build status colors to be variations on a blue color

This commit is contained in:
Joseph Schorr 2015-02-12 16:38:43 -05:00
parent cae460b11b
commit ae8bb5fc13
3 changed files with 16 additions and 13 deletions

View file

@ -11,6 +11,7 @@ from threading import Event
from trollius.coroutines import From
from datetime import timedelta
from buildman.jobutil.buildstatus import StatusHandler
from buildman.jobutil.buildjob import BuildJob, BuildJobLoadException
from data import database
from data.queue import WorkQueue
@ -158,6 +159,9 @@ class BuilderServer(object):
logger.debug('Build job found. Checking for an avaliable worker.')
scheduled = yield From(self._lifecycle_manager.schedule(build_job))
if scheduled:
status_handler = StatusHandler(self._build_logs, build_job.repo_build.uuid)
status_handler.set_phase('build-scheduled')
self._job_count = self._job_count + 1
logger.debug('Build job scheduled. Running: %s', self._job_count)
else: