From 50abf9504b74afbccf7ec8a715bed92c4b18c98b Mon Sep 17 00:00:00 2001 From: Praneeth Bedapudi Date: Wed, 30 Oct 2024 19:38:45 +0530 Subject: [PATCH] update benchmarking script Signed-off-by: Praneeth Bedapudi --- fastdeploy/_rest.py | 5 +---- setup.py | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/fastdeploy/_rest.py b/fastdeploy/_rest.py index ad13cfd..69a2aa3 100644 --- a/fastdeploy/_rest.py +++ b/fastdeploy/_rest.py @@ -151,10 +151,7 @@ def on_post(self, req, resp): if success: resp.status = falcon.HTTP_200 else: - if response["reason"] == "timeout": - resp.status = falcon.HTTP_408 - else: - resp.status = falcon.HTTP_500 + resp.status = falcon.HTTP_500 if input_type == "json": resp.media = response diff --git a/setup.py b/setup.py index 954e987..3b97640 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ EMAIL = "praneeth@bpraneeth.com" AUTHOR = "BEDAPUDI PRANEETH" REQUIRES_PYTHON = ">=3.6.0" -VERSION = "3.0.25" +VERSION = "3.0.26" # What packages are required for this module to be executed? REQUIRED = ["falcon", "liteindex==0.0.3.2.dev4", "zstandard", "gunicorn[gevent]", "msgpack"]