From 07a73d7af942f1b7d13522495315db2dd7d1ed5b Mon Sep 17 00:00:00 2001 From: Konboi Date: Tue, 21 Apr 2026 11:11:43 +0900 Subject: [PATCH] fix: Extend timeout for inspect subset and compare subsets Large subsets can take well over the default 15s read timeout to fetch, causing `inspect subset` and `compare subsets` to fail. Raise the per-request timeout to (30, 300) for these GET calls. Co-Authored-By: Claude Opus 4.7 --- launchable/commands/compare/subsets.py | 2 +- launchable/commands/inspect/subset.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/launchable/commands/compare/subsets.py b/launchable/commands/compare/subsets.py index d43e547a1..cddf13860 100644 --- a/launchable/commands/compare/subsets.py +++ b/launchable/commands/compare/subsets.py @@ -66,7 +66,7 @@ def results(self) -> List[SubsetResult]: @classmethod def load(cls, client: LaunchableClient, subset_id: int) -> "SubsetResults": try: - response = client.request("get", f"subset/{subset_id}") + response = client.request("get", f"subset/{subset_id}", timeout=(30, 300)) if response.status_code == HTTPStatus.NOT_FOUND: raise click.ClickException( f"Subset {subset_id} not found. Check subset ID and try again." diff --git a/launchable/commands/inspect/subset.py b/launchable/commands/inspect/subset.py index 5ff0baeb1..fa5a07de8 100644 --- a/launchable/commands/inspect/subset.py +++ b/launchable/commands/inspect/subset.py @@ -110,7 +110,7 @@ def subset(context: click.core.Context, subset_id: int, is_json_format: bool): rest = [] client = LaunchableClient(app=context.obj) try: - res = client.request("get", "subset/{}".format(subset_id)) + res = client.request("get", "subset/{}".format(subset_id), timeout=(30, 300)) if res.status_code == HTTPStatus.NOT_FOUND: click.echo(click.style(