2.11.0

SlurmJobMetadata

Package: flyteplugins.slurm

Parameters

class SlurmJobMetadata(
    job_id: str,
    job_name: str,
    host: str,
    username: str,
    port: int,
    stdout_path: str,
    stderr_path: str,
    known_hosts: typing.Optional[str] = None,
    skip_host_key_verification: bool = False,
    declared_outputs: typing.Dict[str, typing.Dict[str, str]] = <factory>,
)
Parameter Type Description
job_id str
job_name str
host str
username str
port int
stdout_path str
stderr_path str
known_hosts typing.Optional[str]
skip_host_key_verification bool
declared_outputs typing.Dict[str, typing.Dict[str, str]]

Methods

Method Description
decode() Decode the resource meta from bytes.
encode() Encode the resource meta to bytes.

decode()

def decode(
    data: bytes,
) -> typing.Self

Decode the resource meta from bytes.

Parameter Type Description
data bytes

encode()

def encode()

Encode the resource meta to bytes.