mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-16 17:47:06 +08:00
feat(shell): set default timeout for shell execution to 10,000,000 milliseconds
This commit is contained in:
@@ -58,7 +58,7 @@ class ShipyardShellWrapper:
|
||||
|
||||
result = await self._shell.exec(
|
||||
run_command,
|
||||
timeout=timeout,
|
||||
timeout=timeout or 10_000_000,
|
||||
cwd=cwd,
|
||||
)
|
||||
payload = _maybe_model_dump(result)
|
||||
|
||||
@@ -122,7 +122,7 @@ class NeoShellComponent(ShellComponent):
|
||||
|
||||
result = await self._sandbox.shell.exec(
|
||||
run_command,
|
||||
timeout=timeout,
|
||||
timeout=timeout or 10_000_000,
|
||||
cwd=cwd,
|
||||
)
|
||||
payload = _maybe_model_dump(result)
|
||||
|
||||
Reference in New Issue
Block a user