Skip to content

Commit d526fec

Browse files
authored
Merge pull request #12 from terasum/fix-create-sandbox-timeout
fix: change create sandbox default timeout as 30s
2 parents 6ee54ea + 71157d1 commit d526fec

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)