Skip to content

Commit

Permalink
feat: add Waiting for dependencies and paused statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
aneojgurhem committed Sep 2, 2024
1 parent f49315d commit 4a1ebb1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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_WAITING_FOR_DEPENDENCIES = 12; /** Task is waiting for its dependencies before becoming executable. */
TASK_STATUS_PAUSED = 11; /** Task is paused and will not be executed until session is resumed. */
}
5 changes: 4 additions & 1 deletion 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_WAITING_FOR_DEPENDENCIES,
TASK_STATUS_PAUSED,
)
from ..protogen.common.events_common_pb2 import (
EVENTS_ENUM_UNSPECIFIED,
Expand Down Expand Up @@ -69,7 +71,8 @@ class TaskStatus(IntEnum):
PROCESSING = TASK_STATUS_PROCESSING
PROCESSED = TASK_STATUS_PROCESSED
RETRIED = TASK_STATUS_RETRIED

WAITING_FOR_DEPENDENCIES = TASK_STATUS_WAITING_FOR_DEPENDENCIES
PAUSED = TASK_STATUS_PAUSED

class EventTypes:
UNSPECIFIED = EVENTS_ENUM_UNSPECIFIED
Expand Down

0 comments on commit 4a1ebb1

Please sign in to comment.