github.com/rvaralda/deis@v1.4.1/controller/scheduler/states.py (about) 1 import enum 2 3 4 class TransitionNotAllowed(Exception): 5 """Raised when a transition from one state to another is illegal""" 6 7 8 class JobState(enum.Enum): 9 initialized = 1 10 created = 2 11 up = 3 12 down = 4 13 destroyed = 5 14 crashed = 6 15 error = 7