Skip to content

Commit 22a6ce5

Browse files
authored
[Session Code Execute] Extend maximum supported value of --timeout-in-seconds from 60 to 180 (#8844)
* Update _validators.py * Update HISTORY.rst * Update _params.py * Update HISTORY.rst
1 parent 107e9cf commit 22a6ce5

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/containerapp/HISTORY.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Release History
44
===============
55
upcoming
66
++++++
7+
* 'az containerapp session code-interpreter execute': Extend maximum supported value of `--timeout-in-seconds` from 60 to 180.
78

89
1.2.0b1
910
++++++

src/containerapp/azext_containerapp/_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ def load_arguments(self, _):
483483

484484
with self.argument_context('containerapp session code-interpreter', arg_group='execute') as c:
485485
c.argument('code', help="The code to execute in the code interpreter session")
486-
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")
486+
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")
487487

488488
with self.argument_context('containerapp java logger') as c:
489489
c.argument('logger_name', help="The logger name.")

src/containerapp/azext_containerapp/_validators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ def validate_target_port_range(cmd, namespace):
219219
def validate_timeout_in_seconds(cmd, namespace):
220220
timeout_in_seconds = namespace.timeout_in_seconds
221221
if timeout_in_seconds is not None:
222-
if timeout_in_seconds < 0 or timeout_in_seconds > 60:
223-
raise ValidationError("timeout in seconds must be in range [0, 60].")
222+
if timeout_in_seconds < 0 or timeout_in_seconds > 180:
223+
raise ValidationError("timeout in seconds must be in range [0, 180].")
224224

225225

226226
def validate_debug(cmd, namespace):

0 commit comments

Comments
 (0)