Quick Jobs with uv
To run Python workloads rapidly without authoring a custom Dockerfile or writing a full workload YAML definition, you can use the official astral/uv:latest image. Combined with uv's dynamic dependency injection (uv run --with <package>), you can execute arbitrary Python scripts with ad-hoc dependencies directly from the command line.
Example Command
solti job run --image astral/uv:latest \
--env PYTHONUNBUFFERED=1 \
--volume bucket=my-ml-datasets,prefix=some/prefix,mountPath=/mnt/r2 \
--resources cpu=4,memory=16Gi \
--label environment=production \
--tag quick-job \
uv run --with numpy --with pandas --with torch python -c "$(echo 'your_script.py')"
Key Capabilities & Mechanics
Positional command & arguments mapping — if solti job run does not include explicit --command or --args flags, any trailing arguments following the command options are automatically passed as the container's command and args. In the example above, uv is executed as the primary command, and ["run", "--with", "numpy", "--with", "pandas", "--with", "torch", "python", "-c", "..."] are passed as its arguments.
Volume syntax — --volume bucket=my-ml-datasets,prefix=some/prefix,mountPath=/mnt/r2 mounts the bucket at the given prefix and container path (volume name defaults to the bucket name; override with --volume-name). Solti automatically resolves the matching cloud storage credentials.
Environment variables — use --env KEY=VALUE (repeatable) to inject container environment variables. For larger sets, declare an env: map in a workload YAML file (solti job run -f workload.yaml) instead of exposing sensitive tokens on the command line.