From 5d7aa7009a4ab9181d58fc9428c6c9472d5ff2ec Mon Sep 17 00:00:00 2001 From: Casey Stone Date: Mon, 25 Nov 2024 17:02:31 -0600 Subject: [PATCH] added timeout for bug fix --- ot2_driver/ot2_driver_http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ot2_driver/ot2_driver_http.py b/ot2_driver/ot2_driver_http.py index ea4ef9e..c2d2047 100644 --- a/ot2_driver/ot2_driver_http.py +++ b/ot2_driver/ot2_driver_http.py @@ -148,7 +148,7 @@ def transfer(self, protocol_path: PathLike) -> Tuple[str, str]: # transfer the protocol transfer_resp = requests.post( - url=transfer_url, files=files, headers=self.headers + url=transfer_url, files=files, headers=self.headers, timeout=600 ) print(transfer_resp.status_code) print(transfer_resp.text) @@ -284,7 +284,7 @@ def check_run_status(self, run_id) -> RunStatus: if check_run_resp.status_code != 200: print(f"Cannot check run {run_id}") - print(check_run_resp.json()) + status = RunStatus(check_run_resp.json()["data"]["status"]) return status