e2b-dev / E2B

Secure open source cloud runtime for AI apps & AI agents
https://e2b.dev/docs
Apache License 2.0
7.02k stars 458 forks source link

[E2B-438] Move start command handling in Python SDK to a thread #252

Closed ValentaTomas closed 11 months ago

ValentaTomas commented 11 months ago

The Python SDK is sync. We are starting process during Sandbox opening that forwards logs from the start command (this process is called even when there is no start command because we don't know that beforehand) by calling .process.start in the main thread. This blocks the thread for a short time. We can move this call to a separate thread to make the sandbox opening quicker.

Fixing this would improve the sandbox startup time from Python SDK.

From SyncLinear.com | E2B-438

ValentaTomas commented 11 months ago

Fixed by: