Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tecton_client/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ class FeatureStatus(str, Enum):
"""The feature values were not found in the online store either because the join keys do not exist
or the feature values are outside ttl."""

CACHED = "CACHED"
"""The feature values were cached in the backend and retrieved from the cache."""

UNKNOWN = "UNKNOWN"
"""An unknown status code occurred, most likely because an error occurred during feature retrieval."""

Expand Down
2 changes: 1 addition & 1 deletion tests/responses_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def test_slo_response(self) -> None:
(FloatType, FeatureStatus.MISSING_DATA, "2023-05-03T00:00:00"),
(IntType, FeatureStatus.PRESENT, "2023-05-03T00:00:00"),
(FloatType, FeatureStatus.PRESENT, "2023-05-03T00:00:00"),
(ArrayType, FeatureStatus.PRESENT, "2023-05-03T00:00:00"),
(ArrayType, FeatureStatus.CACHED, "2023-05-03T00:00:00"),
],
)
],
Expand Down
2 changes: 1 addition & 1 deletion tests/tecton_client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class TestTectonClient:
(FloatType, FeatureStatus.MISSING_DATA, "2023-05-03T00:00:00"),
(IntType, FeatureStatus.PRESENT, "2023-05-03T00:00:00"),
(FloatType, FeatureStatus.PRESENT, "2023-05-03T00:00:00"),
(ArrayType, FeatureStatus.PRESENT, "2023-05-03T00:00:00"),
(ArrayType, FeatureStatus.CACHED, "2023-05-03T00:00:00"),
]
expected_slo_info = {
"dynamodb_response_size_bytes": None,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data/single/sample_response_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"type": "string"
}
},
"status": "PRESENT"
"status": "CACHED"
}
],
"sloInfo": {
Expand Down