Skip to content

Is it possible to establish concurrent connections to a single sandbox from multiple code instances, such as in a multi-instance deployment environment? #1030

@fsqinghuayu

Description

@fsqinghuayu

If I have established connections to the sandbox from multiple pods, will pausing one pod's connection impact the other pod's connection?

Here's how I'm currently using the sandbox

# User creates sandbox

# User passes the existing sandbox ID with the request
sbx = await AsyncSandbox.connect(sandbox_id=request.sandbox_id, timeout=600)

# Execute some code such as AI agent ...

await sbx.beta_pause()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions