Volume

class

gworker_client.resources.Volume

Persistent storage volume. Mounted into task containers at a specified path. Data persists across deploys, retries, and restarts. Backed by distributed block storage; safe for model weights, checkpoints, and datasets.

Class

python
1class Volume

Methods

from_name

python
1from_name(name: str, create: bool = True, region: str = 'ANY') -> Volume

Reference a volume by name. With create=True (default), the volume is provisioned automatically on first deploy. region pins the volume to a datacenter — should match the task's region for lowest latency.

← Back to docs