Adding in a cancel method to the build component so we can properly clean up the job task.

This commit is contained in:
Charlton Austin 2016-12-05 14:56:18 -05:00
parent 3bbd8ca898
commit c6be12e31e
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):