From 79f1181a635384cf16c50df2f460b2f66cae66c4 Mon Sep 17 00:00:00 2001 From: Jake Moshenko Date: Thu, 14 May 2015 15:37:16 -0400 Subject: [PATCH] Switch build-scheduled to an official build phase. --- buildman/server.py | 2 +- data/database.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/buildman/server.py b/buildman/server.py index fa8f4ea90..878b8d5fd 100644 --- a/buildman/server.py +++ b/buildman/server.py @@ -182,7 +182,7 @@ class BuilderServer(object): if schedule_success: logger.debug('Marking build %s as scheduled', build_job.repo_build.uuid) status_handler = StatusHandler(self._build_logs, build_job.repo_build.uuid) - status_handler.set_phase('build-scheduled') + status_handler.set_phase(database.BUILD_PHASE.BUILD_SCHEDULED) self._job_count = self._job_count + 1 logger.debug('Build job %s scheduled. Running: %s', build_job.repo_build.uuid, diff --git a/data/database.py b/data/database.py index 6caae2d73..648b5058c 100644 --- a/data/database.py +++ b/data/database.py @@ -515,6 +515,7 @@ class BUILD_PHASE(object): """ Build phases enum """ ERROR = 'error' INTERNAL_ERROR = 'internalerror' + BUILD_SCHEDULED = 'build-scheduled' UNPACKING = 'unpacking' PULLING = 'pulling' BUILDING = 'building'