Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Update reconnect_2.py

Vasek Mlejnskyfd9a7f15524e
diff --git a/apps/web/src/code/python/reconnect/reconnect_2.py b/apps/web/src/code/python/reconnect/reconnect_2.py
index e3ba516a3..fd02528a3 100644
--- a/apps/web/src/code/python/reconnect/reconnect_2.py
+++ b/apps/web/src/code/python/reconnect/reconnect_2.py
@@ -5,10 +5,10 @@ sandbox.filesystem.write('hello.txt', 'Hello World!')
sandboxID = sandbox.id
# Keep the sandbox alive for 2 minutes
-sandbox.keep_alive(60 * 60) # $HighlightLine
+sandbox.keep_alive(60 * 2) # $HighlightLine
# Close the sandbox. Even if we close the sandbox, it will stay alive, because we explicitly called keep_alive().
sandbox.close()
# Do something else...
-time.sleep(60)
\ No newline at end of file
+time.sleep(60)