Merged
Conversation
Signed-off-by: Samhita Alla <aallasamhita@gmail.com>
Signed-off-by: Samhita Alla <aallasamhita@gmail.com>
kumare3
reviewed
Feb 12, 2026
kumare3
reviewed
Feb 12, 2026
Signed-off-by: Samhita Alla <aallasamhita@gmail.com>
Signed-off-by: Samhita Alla <aallasamhita@gmail.com>
Signed-off-by: Samhita Alla <aallasamhita@gmail.com>
Resolved conflicts in convert.py and _container.py Removed _sandbox.py file Co-Authored-By: Warp <agent@warp.dev>
Signed-off-by: Samhita Alla <aallasamhita@gmail.com>
Signed-off-by: Samhita Alla <aallasamhita@gmail.com>
Signed-off-by: Samhita Alla <aallasamhita@gmail.com>
samhita-alla
commented
Feb 24, 2026
Signed-off-by: Samhita Alla <aallasamhita@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
flyte.sandbox.create()for containerized executionThis PR introduces a lightweight sandbox runtime for executing arbitrary code inside an ephemeral stateless container, along with improvements to file handling.
Sandbox execution API
flyte.sandbox.create()runs arbitrary Python code or shell commands inside a one-off Docker container.The container is built on demand from the declared
packages/system_packages, executed once, and discarded.Supported execution modes
Auto-IO mode (default): minimal boilerplate
codeis provided andauto_io=True/var/outputs/Verbatim mode: full script control
auto_io=False/var/inputs/and/var/outputs/Command mode: run arbitrary commands
Execution
Call
.run()on the returned sandbox to build the image and execute.Container improvements (
_container.py)Fileinput fromkwargsDeterministic remote file paths (
_file.py) -File.named_remote(name)Creates a File reference whose remote path is derived deterministically from name. Unlike
File.new_remote(), which generates a random path on each call, this method produces the same path for the same name within a task execution, making it safe across retries.If extraction fails, it falls back to the run base directory.
New error type
InvalidPackageError: Introduced to signal invalid or unavailable packages during sandbox image build.