Skip to content

Commit

Permalink
added timeout for bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
caseystone committed Nov 25, 2024
1 parent cb655a2 commit 5d7aa70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ot2_driver/ot2_driver_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5d7aa70

Please sign in to comment.