Skip to content

Commit

Permalink
feat: add deleted status for results
Browse files Browse the repository at this point in the history
  • Loading branch information
fdewas-aneo committed Apr 18, 2024
1 parent 481f425 commit 02cb1fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Protos/V1/result_status.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ enum ResultStatus {
RESULT_STATUS_CREATED = 1; /** Result is created and task is created, submitted or dispatched. */
RESULT_STATUS_COMPLETED = 2; /** Result is completed with a completed task. */
RESULT_STATUS_ABORTED = 3; /** Result is aborted. */
RESULT_STATUS_DELETED = 4;

/** NOTFOUND is encoded as 127 to make it small while still leaving enough room for future status extensions
*
Expand Down
2 changes: 2 additions & 0 deletions packages/python/src/armonik/common/enumwrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
RESULT_STATUS_CREATED,
RESULT_STATUS_COMPLETED,
RESULT_STATUS_ABORTED,
RESULT_STATUS_DELETED,
RESULT_STATUS_NOTFOUND,
)
from ..protogen.common.health_checks_common_pb2 import (
Expand Down Expand Up @@ -96,6 +97,7 @@ def name_from_value(status: RawResultStatus) -> str:
CREATED = RESULT_STATUS_CREATED
COMPLETED = RESULT_STATUS_COMPLETED
ABORTED = RESULT_STATUS_ABORTED
DELETED = RESULT_STATUS_DELETED
NOTFOUND = RESULT_STATUS_NOTFOUND


Expand Down

0 comments on commit 02cb1fa

Please sign in to comment.