modal-labs / modal-client

Python client library for Modal
https://modal.com/docs
Apache License 2.0
271 stars 35 forks source link

Allow sandboxes to be created without an entrypoint #2248

Closed pawalt closed 2 weeks ago

pawalt commented 2 weeks ago

Describe your changes

This allows users to create long-lived sandboxes whose only purpose is to have .exec called inside them.

Backward/forward compatibility checks --- Check these boxes or delete any item (or this section) if not relevant for this PR. - [x] Client+Server: this change is compatible with old servers - [x] Client forward compatibility: this change ensures client can accept data intended for later versions of itself Note on protobuf: protobuf message changes in one place may have impact to multiple entities (client, server, worker, database). See points above. ---

Changelog

Sandboxes can now be created without an entrypoint command. If they are created like this, they will stay alive up until their set timeout. This is useful if you want to keep a long-lived sandbox and execute code in it later.

pawalt commented 2 weeks ago

@prbot approve