Downloader: Make timeout configurable
Add an API parameter to set the timeout in seconds. Keep it to None by default for uninterrupted downloads. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
8c02fe9771
commit
71de3060bb
2 changed files with 4 additions and 2 deletions
|
|
@ -17,6 +17,7 @@ class DownloadRequest(BaseModel):
|
|||
include: List[str] = Field(default_factory=_generate_include_list)
|
||||
exclude: List[str] = Field(default_factory=list)
|
||||
chunk_limit: Optional[int] = None
|
||||
timeout: Optional[int] = None
|
||||
|
||||
|
||||
class DownloadResponse(BaseModel):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue