diff --git a/src/containerapp/HISTORY.rst b/src/containerapp/HISTORY.rst index 53d69b0627a..8028f198e8b 100644 --- a/src/containerapp/HISTORY.rst +++ b/src/containerapp/HISTORY.rst @@ -4,6 +4,7 @@ Release History =============== upcoming ++++++ +* 'az containerapp session code-interpreter execute': Extend maximum supported value of `--timeout-in-seconds` from 60 to 180. 1.2.0b1 ++++++ 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.") 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):