Skip to content

Commit 0e5d6f9

Browse files
committed
Set default DLI request timeout to 3 seconds
1 parent a1e0923 commit 0e5d6f9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### 🏷️ Changed
66

77
* Restart the actor when it has been errored for 300 seconds instead of 30
8+
* Set default DLI request timeout to 3 seconds.
89

910
### ⚙️ Engineering
1011

src/lvmnps/tools.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class APIClient:
3939
base_url: str
4040
user: str
4141
password: SecretStr
42+
timeout: float = 3
4243

4344
auth_method: Literal["digest", "basic"] = "digest"
4445

@@ -64,6 +65,7 @@ async def __aenter__(self):
6465
auth=auth,
6566
base_url=self.base_url,
6667
headers={},
68+
timeout=self.timeout,
6769
)
6870

6971
return self.client

0 commit comments

Comments
 (0)