Skip to content

Commit

Permalink
Set default DLI request timeout to 3 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jan 11, 2025
1 parent a1e0923 commit 0e5d6f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### 🏷️ Changed

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

### ⚙️ Engineering

Expand Down
2 changes: 2 additions & 0 deletions src/lvmnps/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class APIClient:
base_url: str
user: str
password: SecretStr
timeout: float = 3

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

Expand All @@ -64,6 +65,7 @@ async def __aenter__(self):
auth=auth,
base_url=self.base_url,
headers={},
timeout=self.timeout,
)

return self.client
Expand Down

0 comments on commit 0e5d6f9

Please sign in to comment.