Skip to main content

PodInfo

from lium.sdk import PodInfo

Defined in lium.sdk.models.

PodInfo(
id: str,
name: str,
status: str,
huid: str,
ssh_cmd: Optional[str],
ports: Dict,
created_at: str,
updated_at: str,
executor: Optional[lium.sdk.models.ExecutorInfo],
template: Dict,
removal_scheduled_at: Optional[str],
jupyter_installation_status: Optional[str],
jupyter_url: Optional[str],
enable_volume_encryption: bool | None = None,
volume_encryption_status: str | None = None,
estimated_ready_seconds: int | None = None,
eta_basis: str | None = None,
phase: str | None = None,
gpu_count: Optional[int] = None,
workspace_id: Optional[str] = None,
cluster_id: Optional[str] = None,
cluster_node_index: Optional[int] = None,
cluster_overlay_ip: Optional[str] = None,
api_key_id: Optional[str] = None,
api_key_name: Optional[str] = None,
api_key_stamped: bool = False
)

Fields​

NameTypeDefault
idstr
namestr
statusstr
huidstr
ssh_cmdOptional[str]
portsDict
created_atstr
updated_atstr
executorOptional[ExecutorInfo]
templateDict
removal_scheduled_atOptional[str]
jupyter_installation_statusOptional[str]
jupyter_urlOptional[str]
enable_volume_encryptionboolNone
volume_encryption_statusstrNone
estimated_ready_secondsintNone
eta_basisstrNone
phasestrNone
gpu_countOptional[int]None
workspace_idOptional[str]None
cluster_idOptional[str]None
cluster_node_indexOptional[int]None
cluster_overlay_ipOptional[str]None
api_key_idOptional[str]None
api_key_nameOptional[str]None
api_key_stampedboolFalse

Properties​

NameTypeDescription
hostOptional[str]
usernameOptional[str]
ssh_portintExtract SSH port from command.
volume_pathstrReturn the pod's local volume mount path.
default_restore_pathstrReturn a safe restore destination below the local volume mount.

Methods​

MethodDescription
eta_hintOne line for a pod that is still starting, e.g. est. ready in ~18 s (phase: pulling image).

eta_hint​

def eta_hint() -> Optional[str]:

One line for a pod that is still starting, e.g. est. ready in ~18 s (phase: pulling image).

None when the API sent neither an estimate nor a phase (older backend, or the pod is already RUNNING).