Skip to content

Commit

Permalink
Bump e2b version; Add timeout to _check_sandbox_liveness
Browse files Browse the repository at this point in the history
  • Loading branch information
humpydonkey committed Jul 3, 2024
1 parent 6d8e2cb commit 8dff443
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ rich = "^13.7.1"
langsmith = "^0.1.58"
ipykernel = "^6.29.4"
e2b = "^0.17.1"
e2b-code-interpreter = "0.0.11a1"
e2b-code-interpreter = "0.0.11a2"
tenacity = "^8.3.0"
pillow-heif = "^0.16.0"
pytube = "15.0.0"
Expand Down
2 changes: 1 addition & 1 deletion vision_agent/utils/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ def download_file(self, file_path: str) -> Path:

def _check_sandbox_liveness(self) -> None:
try:
alive = self.interpreter.is_running()
alive = self.interpreter.is_running(request_timeout=2)
except Exception as e:
_LOGGER.error(
f"Failed to check the health of the remote sandbox ({self.interpreter.sandbox_id}) due to {e}. Consider the sandbox as dead."
Expand Down

0 comments on commit 8dff443

Please sign in to comment.