Skip to content

Commit

Permalink
Update reconnect_2.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mlejva authored Oct 5, 2024
1 parent b07dd29 commit fd9a7f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/code/python/reconnect/reconnect_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
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)
time.sleep(60)

0 comments on commit fd9a7f1

Please sign in to comment.