Skip to content

Commit a39089c

Browse files
authored
Merge pull request #41 from DataCrunch-io/feature/update-inference-status-enums
Update inference status enums
2 parents 4c34faa + 2068d28 commit a39089c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Changed
1111

1212
- This file and CONTRIBUTING.rst to markdown
13+
- Updated inference status enum from numerical to meaningful string values
1314

1415
### Fixed
1516

datacrunch/InferenceClient/inference_client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ class InferenceClientError(Exception):
1212
pass
1313

1414

15-
class AsyncStatus(int, Enum):
16-
Initialized = 0
17-
Queue = 1
18-
Inference = 2
19-
Completed = 3
15+
class AsyncStatus(str, Enum):
16+
Initialized = "Initialized"
17+
Queue = "Queue"
18+
Inference = "Inference"
19+
Completed = "Completed"
2020

2121

2222
@dataclass_json(undefined=Undefined.EXCLUDE)

0 commit comments

Comments
 (0)