Skip to content

Commit 6d6ed16

Browse files
committed
Merge pull request #611 from helgi/scheduler_transition
ref(scheduler): remove TransitionError as it is no longer used
2 parents 8ce2036 + 2433459 commit 6d6ed16

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

rootfs/scheduler/states.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
import enum
22

33

4-
class TransitionError(Exception):
5-
"""Raised when a transition from one state to another is illegal"""
6-
7-
def __init__(self, prev, next, msg):
8-
self.prev = prev
9-
self.next = next
10-
self.msg = msg
11-
12-
134
class JobState(enum.Enum):
145
initialized = 1
156
created = 2

0 commit comments

Comments
 (0)