mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-02 07:34:45 +08:00
refactor(proto)!: use well-known time types (#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>
This commit is contained in:
@@ -1075,10 +1075,11 @@ class SandboxClient:
|
||||
command=list(command),
|
||||
workdir=workdir or "",
|
||||
environment=dict(env or {}),
|
||||
timeout_seconds=timeout_seconds or 0,
|
||||
stdin=stdin or b"",
|
||||
no_login_shell=no_login_shell,
|
||||
)
|
||||
if timeout_seconds:
|
||||
request.execution_timeout.seconds = timeout_seconds
|
||||
# Use whichever is larger: the default client timeout or the command
|
||||
# timeout plus headroom for SSH setup / teardown overhead.
|
||||
grpc_deadline = self._timeout
|
||||
|
||||
Reference in New Issue
Block a user