Skip to content

Commit 31abdb7

Browse files
Merge pull request #743 from anupamme/fix-repo-curator-b113-requests-timeout
harden: add resource limit in client.py (gitlab.bandit.B113)
2 parents ce9bf99 + 8d461d3 commit 31abdb7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/bespokelabs/curator/client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def create_session(self, metadata: t.Dict, session_id: str | None = None) -> str
6969
return self.session
7070
metadata.update({"status": _SessionStatus.STARTED})
7171

72-
response = requests.post(f"{BASE_CLIENT_URL}/sessions", json=metadata, headers=self._headers)
72+
response = requests.post(f"{BASE_CLIENT_URL}/sessions", json=metadata, headers=self._headers, timeout=30)
7373

7474
if response.status_code == 200:
7575
self._session = response.json().get("session_id")

0 commit comments

Comments
 (0)