Skip to content

Commit

Permalink
add higher timeout value
Browse files Browse the repository at this point in the history
  • Loading branch information
NodeJSmith committed Jan 6, 2025
1 parent 401d100 commit 586171e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/otf_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ def __init__(self, auth: OtfAuth | None = None, user: OtfUser | None = None):
raise ValueError("Either auth or user must be provided.")

self.session = httpx.Client(
headers={"Content-Type": "application/json", "Accept": "application/json"}, auth=self.user.httpx_auth
headers={"Content-Type": "application/json", "Accept": "application/json"},
auth=self.user.httpx_auth,
timeout=httpx.Timeout(10.0, connect=60.0),
)
atexit.register(self.session.close)

Expand Down

0 comments on commit 586171e

Please sign in to comment.