From e3bf017a96196ada2338fd1e3ab6c62bf6a37510 Mon Sep 17 00:00:00 2001 From: Bowen Wan Date: Tue, 10 Jun 2025 10:41:02 +0800 Subject: [PATCH 1/4] Update _validators.py --- src/containerapp/azext_containerapp/_validators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/containerapp/azext_containerapp/_validators.py b/src/containerapp/azext_containerapp/_validators.py index 3244c82e9d0..f416c33185b 100644 --- a/src/containerapp/azext_containerapp/_validators.py +++ b/src/containerapp/azext_containerapp/_validators.py @@ -219,8 +219,8 @@ def validate_target_port_range(cmd, namespace): def validate_timeout_in_seconds(cmd, namespace): timeout_in_seconds = namespace.timeout_in_seconds if timeout_in_seconds is not None: - if timeout_in_seconds < 0 or timeout_in_seconds > 60: - raise ValidationError("timeout in seconds must be in range [0, 60].") + if timeout_in_seconds < 0 or timeout_in_seconds > 180: + raise ValidationError("timeout in seconds must be in range [0, 180].") def validate_debug(cmd, namespace): From 92cf07133ad5ddaa6b624222b8894790b097a2d4 Mon Sep 17 00:00:00 2001 From: Bowen Wan Date: Tue, 10 Jun 2025 10:44:20 +0800 Subject: [PATCH 2/4] Update HISTORY.rst --- src/containerapp/HISTORY.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/containerapp/HISTORY.rst b/src/containerapp/HISTORY.rst index 53d69b0627a..3ae3153da7f 100644 --- a/src/containerapp/HISTORY.rst +++ b/src/containerapp/HISTORY.rst @@ -5,6 +5,10 @@ Release History upcoming ++++++ +1.2.0b2 +++++++ +* 'az containerapp session code-interpreter execute': Extend maximum supported value of `--timeout-in-seconds` from 60 to 180. + 1.2.0b1 ++++++ * 'az containerapp env premium-ingress': New environment level ingress configuration. From c6dd55946434cf23be55832fbc845380e288a800 Mon Sep 17 00:00:00 2001 From: Bowen Wan Date: Tue, 10 Jun 2025 10:45:24 +0800 Subject: [PATCH 3/4] Update _params.py --- src/containerapp/azext_containerapp/_params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containerapp/azext_containerapp/_params.py b/src/containerapp/azext_containerapp/_params.py index 693edd74c38..913ed02eb45 100644 --- a/src/containerapp/azext_containerapp/_params.py +++ b/src/containerapp/azext_containerapp/_params.py @@ -483,7 +483,7 @@ def load_arguments(self, _): with self.argument_context('containerapp session code-interpreter', arg_group='execute') as c: c.argument('code', help="The code to execute in the code interpreter session") - c.argument('timeout_in_seconds', type=int, validator=validate_timeout_in_seconds, default=60, help="Duration in seconds code in session can run prior to timing out 0 - 60 secs, e.g. 30") + c.argument('timeout_in_seconds', type=int, validator=validate_timeout_in_seconds, default=60, help="Duration in seconds code in session can run prior to timing out 0 - 180 secs, e.g. 30") with self.argument_context('containerapp java logger') as c: c.argument('logger_name', help="The logger name.") From c43b6b449ce33d3b2f9b8a9b45bfe12b8c1a21bc Mon Sep 17 00:00:00 2001 From: Bowen Wan Date: Tue, 10 Jun 2025 11:41:11 +0800 Subject: [PATCH 4/4] Update HISTORY.rst --- src/containerapp/HISTORY.rst | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/containerapp/HISTORY.rst b/src/containerapp/HISTORY.rst index 3ae3153da7f..8028f198e8b 100644 --- a/src/containerapp/HISTORY.rst +++ b/src/containerapp/HISTORY.rst @@ -4,9 +4,6 @@ Release History =============== upcoming ++++++ - -1.2.0b2 -++++++ * 'az containerapp session code-interpreter execute': Extend maximum supported value of `--timeout-in-seconds` from 60 to 180. 1.2.0b1