diff --git a/CHANGELOG.md b/CHANGELOG.md index c02cf4e..6e2fb07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/lvmnps/tools.py b/src/lvmnps/tools.py index 57e3281..33c3d23 100644 --- a/src/lvmnps/tools.py +++ b/src/lvmnps/tools.py @@ -39,6 +39,7 @@ class APIClient: base_url: str user: str password: SecretStr + timeout: float = 3 auth_method: Literal["digest", "basic"] = "digest" @@ -64,6 +65,7 @@ async def __aenter__(self): auth=auth, base_url=self.base_url, headers={}, + timeout=self.timeout, ) return self.client