Skip to content

Commit a9baeb2

Browse files
AiRanthemzmberg
authored andcommitted
support set timeout while resuming
Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com>
1 parent 394ba63 commit a9baeb2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/servers/e2b/services.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@ func (sc *Controller) PauseSandbox(r *http.Request) (web.ApiResponse[struct{}],
117117
}
118118

119119
func (sc *Controller) ResumeSandbox(r *http.Request) (web.ApiResponse[struct{}], *web.ApiError) {
120-
return sc.pauseAndResumeSandbox(r, false)
120+
resp, err := sc.pauseAndResumeSandbox(r, false)
121+
if err != nil {
122+
return resp, err
123+
}
124+
return sc.SetSandboxTimeout(r)
121125
}
122126

123127
// DescribeSandbox returns details of a specific sandbox

0 commit comments

Comments
 (0)