Fix handling of multi-part branches in the build triggers

Fixes #1360
This commit is contained in:
Joseph Schorr 2016-07-26 13:41:13 -07:00
parent 9d48bcd0f1
commit 06d52f2c83
7 changed files with 232 additions and 21 deletions

View file

@ -665,6 +665,12 @@ class BUILD_PHASE(object):
WAITING = 'waiting'
COMPLETE = 'complete'
@classmethod
def is_terminal_phase(cls, phase):
return (phase == cls.COMPLETE or
phase == cls.ERROR or
phase == cls.INTERNAL_ERROR)
class QueueItem(BaseModel):
queue_name = CharField(index=True, max_length=1024)