Skip to content

Commit 71157d1

Browse files
committed
fix: change createSandbox read timeout as 30s
Signed-off-by: terasum <terasum@163.com>
1 parent 6ee54ea commit 71157d1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/sandbox/api/control.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ export class SandboxControlAPI extends ControlAPI {
274274

275275
try {
276276
const client = this.getClient(config);
277-
const runtime = new $Util.RuntimeOptions({});
277+
const runtime = new $Util.RuntimeOptions({
278+
readTimeout: 30000
279+
});
278280

279281
const response = await client.createSandboxWithOptions(
280282
new $AgentRun.CreateSandboxRequest({ body: input }),

0 commit comments

Comments
 (0)