Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
mattzh72 committed Nov 15, 2024
1 parent 0d59f84 commit 5e120ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions letta/services/tool_execution_sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ def run_e2b_sandbox(self, code: str) -> Optional[Any]:
if not sbx or self.force_recreate:
sbx = self.create_e2b_sandbox_with_metadata_hash(sandbox_config=sbx_config)

# Since this sandbox was used, we extend its lifecycle by the timeout
sbx.set_timeout(sbx_config.get_e2b_config().timeout)

# Get environment variables for the sandbox
# TODO: We set limit to 100 here, but maybe we want it uncapped? Realistically this should be fine.
env_vars = self.sandbox_config_manager.get_sandbox_env_vars_as_dict(sandbox_config_id=sbx_config.id, actor=self.user, limit=100)
Expand Down

0 comments on commit 5e120ac

Please sign in to comment.