parent
9d48bcd0f1
commit
06d52f2c83
7 changed files with 232 additions and 21 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue