Merge pull request #2203 from charltonaustin/fix_build_component_cleanup

Adding in a cancel method to the build component so we can properly c…
This commit is contained in:
Charlton Austin 2016-12-06 14:13:10 -05:00 committed by GitHub
commit 0aa6e6cd58
3 changed files with 11 additions and 2 deletions

View file

@ -747,7 +747,8 @@ class BUILD_PHASE(object):
def is_terminal_phase(cls, phase):
return (phase == cls.COMPLETE or
phase == cls.ERROR or
phase == cls.INTERNAL_ERROR)
phase == cls.INTERNAL_ERROR or
phase == cls.CANCELLED)
class QueueItem(BaseModel):