You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add venv parameter for Python virtualenv activation
Allows instances to run in a pre-existing virtualenv instead of the
worker's Python environment. Users are responsible for creating and
maintaining the venv on shared filesystem.
Changes:
- Add `venv` field to InstanceSubmissionRequest, Instance, DesiredInstance
- Add `venv` column to instances table in SQLite
- Worker activates venv before command: `source {venv}/bin/activate && {cmd}`
- Server validates: must be absolute path, no '..' allowed
- CLI: `--venv /path/to/venv` flag
- Python API: `venv` parameter in submit()
Example:
pylet submit "python train.py" --venv /home/user/torch-env
0 commit comments