Skip to content

Commit

Permalink
feat: add active statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
tobymao committed Sep 16, 2024
1 parent a69d182 commit 0ed1042
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions saq/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class Status(str, enum.Enum):
COMPLETE = "complete"


ACTIVE_STATUSES = {Status.NEW, Status.QUEUED, Status.ACTIVE}
TERMINAL_STATUSES = {Status.COMPLETE, Status.FAILED, Status.ABORTED}
UNSUCCESSFUL_TERMINAL_STATUSES = TERMINAL_STATUSES - {Status.COMPLETE}

Expand Down

0 comments on commit 0ed1042

Please sign in to comment.