Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Minor fixes

Tereza Tizkovaf874fa67d175
diff --git a/apps/docs/src/app/sandbox/api/reconnect/page.mdx b/apps/docs/src/app/sandbox/api/reconnect/page.mdx
index 585e897c0..97c766b96 100644
--- a/apps/docs/src/app/sandbox/api/reconnect/page.mdx
+++ b/apps/docs/src/app/sandbox/api/reconnect/page.mdx
@@ -8,7 +8,7 @@ The sandboxes are by default kept alive only when connected to them. When you di
If you want to keep the sandbox alive even after disconnecting from it, you can explicitly say for how long you want to keep it alive. You can then disconnect from the sandbox and reconnect to it later. This can be useful for example in a **serverless environment** or **chatbot application**.
-The duration limit is 1 hour. If you need more, feel free to [reach out to us](/getting-help) with your use.
+The duration limit to keep the sandbox alive is 1 hour. If you need more, feel free to [reach out to us](/getting-help) with your use.
## Keep sandbox alive
@@ -19,7 +19,7 @@ The example below shows how to disconnect from a running sandbox and reconnect t
isRunnable={false}
/>
-Call the `keep_alive` method on the sandbox instance to keep it alive. You can specify a red duration, as a multiple of a default time unit, which is
+Call the `keep_alive`/`keepAlive` method on the sandbox instance to keep it alive. You can specify a red duration, as a multiple of a default time unit, which is
- 1ms in JS
- 1s in Python.
diff --git a/apps/docs/src/code/js/reconnect/reconnect_2.js b/apps/docs/src/code/js/reconnect/reconnect_2.js
index 1952de7c7..e719f7a82 100644
--- a/apps/docs/src/code/js/reconnect/reconnect_2.js
+++ b/apps/docs/src/code/js/reconnect/reconnect_2.js
@@ -7,7 +7,7 @@ const sandboxID = sandbox.id
// Keep alive the sandbox for 1 hour
await sandbox.keepAlive(60 * 60 * 1000) // 1 hour $HighlightLine
-// Close the sandbox
+// Close the sandbox. Even if we close the sandbox, it will stay alive, because we explicitly called keepAlive().
await sandbox.close()
// Do something else...
diff --git a/apps/docs/src/code/python/reconnect/reconnect_2.py b/apps/docs/src/code/python/reconnect/reconnect_2.py
index b130926ce..5e057f13a 100644
--- a/apps/docs/src/code/python/reconnect/reconnect_2.py
+++ b/apps/docs/src/code/python/reconnect/reconnect_2.py
@@ -7,7 +7,7 @@ sandboxID = sandbox.id
# Keep the sandbox alive for 1 hour
sandbox.keep_alive(60 * 60) # $HighlightLine
-# Close the sandbox
+# Close the sandbox. Even if we close the sandbox, it will stay alive, because we explicitly called keep_alive().
sandbox.close()
# Do something else...