Skip to content

How can I make Sandbox.create non-blocking when creating a sandbox? #439

@big-cooper

Description

@big-cooper

Description When using the Python SDK to create a sandbox, the await Sandbox.create(image, ...) call blocks until the sandbox creation is complete. I am looking for a way to make this operation non-blocking so execution can continue immediately.

sandbox = await Sandbox.create(
    image,
    ...
)

Attempts Made I tried setting the skip_health_check=True parameter, but it seems this does not bypass the blocking stage during creation.

Expected Behavior The Sandbox.create method should return immediately without waiting for the sandbox to be fully ready, or there should be an alternative asynchronous method to initiate creation without blocking.

Actual Behavior The SDK waits for the sandbox creation to complete and blocks the execution flow at the await statement.

Environment

SDK Version: [0.1.5]
Python Version: [3.12.8]
Image: enterprise-public-cn-beijing.cr.volces.com/vefaas-public/all-in-one-sandbox:1.0.0.150

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