Skip to content

Commit 3993b7c

Browse files
committed
better logging
Signed-off-by: Praneeth Bedapudi <[email protected]>
1 parent bb38874 commit 3993b7c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

fastdeploy/_loop.py

+7
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@ def fetch_batch(
147147

148148
for unique_id, data in results.items():
149149
outputs = data[f"{predictor_sequence - 1}.outputs"]
150+
if not isinstance(outputs, (list, tuple)):
151+
_utils.logger.error(
152+
f"Predictor {predictor_sequence} returned {outputs} for {unique_id}"
153+
)
154+
_utils.MAIN_INDEX.delete(unique_id)
155+
continue
156+
150157
input_count = len(outputs)
151158

152159
unique_id_wise_input_count[unique_id] = input_count

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
1919
AUTHOR = "BEDAPUDI PRANEETH"
2020
REQUIRES_PYTHON = ">=3.6.0"
21-
VERSION = "3.0.17"
21+
VERSION = "3.0.18"
2222

2323
# What packages are required for this module to be executed?
2424
REQUIRED = ["falcon", "liteindex", "zstandard", "gunicorn[gevent]", "msgpack"]

0 commit comments

Comments
 (0)