Skip to content

Commit ae430bc

Browse files
refactor(proto)!: use well-known time types (ai-openshell/openshell#3113)
* refactor(proto)!: use well-known time types Signed-off-by: Derek Carr <decarr@redhat.com> * fix(proto): preserve time migration behavior Signed-off-by: Derek Carr <decarr@redhat.com> * fix(proto): preserve timestamp boundary semantics Signed-off-by: Derek Carr <decarr@redhat.com> * fix(proto): convert sandbox token expiry to timestamp Signed-off-by: Derek Carr <decarr@redhat.com> * fix(proto): preserve time compatibility semantics Signed-off-by: Derek Carr <decarr@redhat.com> * fix(proto): preserve exact endpoint and profile times Signed-off-by: Derek Carr <decarr@redhat.com> * test(e2e): use duration for interactive exec timeout Signed-off-by: Derek Carr <decarr@redhat.com> * fix(sdk-go)!: remove legacy profile duration fields BREAKING CHANGE: Go provider profile callers must use RefreshBefore, MaxLifetime, and CacheTTL with ProfileDuration instead of the whole-second fields. Signed-off-by: Derek Carr <decarr@redhat.com> --------- Signed-off-by: Derek Carr <decarr@redhat.com>
1 parent 8495461 commit ae430bc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/openshell/sandbox.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,10 +1075,11 @@ def exec_stream(
10751075
command=list(command),
10761076
workdir=workdir or "",
10771077
environment=dict(env or {}),
1078-
timeout_seconds=timeout_seconds or 0,
10791078
stdin=stdin or b"",
10801079
no_login_shell=no_login_shell,
10811080
)
1081+
if timeout_seconds:
1082+
request.execution_timeout.seconds = timeout_seconds
10821083
# Use whichever is larger: the default client timeout or the command
10831084
# timeout plus headroom for SSH setup / teardown overhead.
10841085
grpc_deadline = self._timeout

0 commit comments

Comments
 (0)