Skip to content

process was not killed when auto paused #1031

@marswong

Description

@marswong

Describe the bug
The sandbox was created by beta_create with auto_paused=True, and there's a process of Next.js server running at port 3000, after auto pausing and resuming the sandbox, the port of 3000 is still in use but I cannot find any command through sandbox.commands.list

To Reproduce
Steps to reproduce the behavior:

from e2b import Sandbox

sbx = Sandbox.beta_create(auto_paused=True, timeout=3599)
# start a next.js server here

# after timeout, re-connect to that sandbox
sbx = Sandbox.connect(sandbox_id="")
sbx.commands.list() # only get a blank list, but the port 3000 is still in use

Expected behavior
Option 1: All processes should be killed properly when auto paused
Option 2: All processes should be resumed auto paused, and they could be list by sandbox.commands.list

Additional context
Sandbox ID: ikyarydnag80kc0o8tq8se2b
Team ID: 0be2861d-c33f-4970-ae30-57e21a4c9a3d

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions