Skip to content

Commit

Permalink
feat: add Pending and Paused statuses (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
aneojgurhem authored Sep 5, 2024
2 parents 2037279 + 7f6ffbb commit 0206d8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Protos/V1/task_status.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ enum TaskStatus {
TASK_STATUS_PROCESSING = 9; /** Task is being processed. */
TASK_STATUS_PROCESSED = 10; /** Task is processed. */
TASK_STATUS_RETRIED = 11; /** Task is retried. */
TASK_STATUS_PENDING = 12; /** Task is waiting for its dependencies before becoming executable. */
TASK_STATUS_PAUSED = 13; /** Task is paused and will not be executed until session is resumed. */
}
4 changes: 4 additions & 0 deletions packages/python/src/armonik/common/enumwrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
TASK_STATUS_PROCESSING,
TASK_STATUS_PROCESSED,
TASK_STATUS_RETRIED,
TASK_STATUS_PENDING,
TASK_STATUS_PAUSED,
)
from ..protogen.common.events_common_pb2 import (
EVENTS_ENUM_UNSPECIFIED,
Expand Down Expand Up @@ -69,6 +71,8 @@ class TaskStatus(IntEnum):
PROCESSING = TASK_STATUS_PROCESSING
PROCESSED = TASK_STATUS_PROCESSED
RETRIED = TASK_STATUS_RETRIED
PENDING = TASK_STATUS_PENDING
PAUSED = TASK_STATUS_PAUSED


class EventTypes:
Expand Down

0 comments on commit 0206d8b

Please sign in to comment.