gravitino.dto.job.job_dto.JobDTO

class gravitino.dto.job.job_dto.JobDTO(_job_id: str, _job_template_name: str, _status: Status, _audit: AuditDTO)

Bases: DataClassJsonMixin

Data transfer object representing a Job.

__init__(_job_id: str, _job_template_name: str, _status: Status, _audit: AuditDTO) None

Methods

__init__(_job_id, _job_template_name, ...)

audit()

Returns the audit information of the job.

from_dict(kvs, *[, infer_missing])

from_json(s, *[, parse_float, parse_int, ...])

job_id()

Returns the job ID.

job_template_name()

Returns the job template name.

schema(*[, infer_missing, only, exclude, ...])

status()

Returns the status of the job.

to_dict([encode_json])

to_json(*[, skipkeys, ensure_ascii, ...])

validate()

Validates the JobDTO, ensuring required fields are present and non-empty.

Attributes

dataclass_json_config

audit() AuditDTO

Returns the audit information of the job.

job_id() str

Returns the job ID.

job_template_name() str

Returns the job template name.

status() Status

Returns the status of the job.

validate() None

Validates the JobDTO, ensuring required fields are present and non-empty.