Skip to content

Commit

Permalink
fix(status type): add cancelled status type to jobs and runs
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineDao committed Mar 11, 2021
1 parent 3ed7fa9 commit ebb3017
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions queenbee/job/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ class JobStatusEnum(str, Enum):
running = 'Running'
# The job has failed to schedule runs
failed = 'Failed'
# The job has been cancelled by a user
cancelled = 'Cancelled'
# All runs have either succeeded or failed
completed = 'Completed'
# Could not determine the status of the job
Expand Down
2 changes: 2 additions & 0 deletions queenbee/job/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ class RunStatusEnum(str, Enum):
post_processing = 'Post-Processing'
# The run has failed
failed = 'Failed'
# The run has been cancelled by a user
cancelled = 'Cancelled'
# The run has completed succesfully
succeeded = 'Succeeded'
# Could not determine the status of the run
Expand Down

0 comments on commit ebb3017

Please sign in to comment.