Skip to content

Commit

Permalink
better logging
Browse files Browse the repository at this point in the history
Signed-off-by: Praneeth Bedapudi <[email protected]>
  • Loading branch information
bedapudi6788 committed Oct 24, 2024
1 parent bb38874 commit 3993b7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions fastdeploy/_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ def fetch_batch(

for unique_id, data in results.items():
outputs = data[f"{predictor_sequence - 1}.outputs"]
if not isinstance(outputs, (list, tuple)):
_utils.logger.error(
f"Predictor {predictor_sequence} returned {outputs} for {unique_id}"
)
_utils.MAIN_INDEX.delete(unique_id)
continue

input_count = len(outputs)

unique_id_wise_input_count[unique_id] = input_count
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
EMAIL = "[email protected]"
AUTHOR = "BEDAPUDI PRANEETH"
REQUIRES_PYTHON = ">=3.6.0"
VERSION = "3.0.17"
VERSION = "3.0.18"

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

0 comments on commit 3993b7c

Please sign in to comment.