Skip to content
Snippets Groups Projects
Commit 3570e4a8 authored by Nathaniel Kofalt's avatar Nathaniel Kofalt
Browse files

Allow trivial job state machine transition

parent f6f94172
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ JOB_TRANSITIONS = [
# TODO: json schema
def validTransition(fromState, toState):
return (fromState + " --> " + tosState) in JOB_TRANSITIONS
return (fromState + " --> " + toState) in JOB_TRANSITIONS or fromState == toState
def createJob(db, jobType, containerType, containerID):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment