ray.job_submission.JobInfo#

class ray.job_submission.JobInfo(status: ray.dashboard.modules.job.common.JobStatus, entrypoint: str, message: Optional[str] = None, error_type: Optional[str] = None, start_time: Optional[int] = None, end_time: Optional[int] = None, metadata: Optional[Dict[str, str]] = None, runtime_env: Optional[Dict[str, Any]] = None, entrypoint_num_cpus: Optional[Union[int, float]] = None, entrypoint_num_gpus: Optional[Union[int, float]] = None, entrypoint_resources: Optional[Dict[str, float]] = None, driver_agent_http_address: Optional[str] = None, driver_node_id: Optional[str] = None)[source]#

Bases: object

A class for recording information associated with a job and its execution.

Please keep this in sync with the JobsAPIInfo proto in src/ray/protobuf/gcs.proto.

PublicAPI: This API is stable across Ray releases.

Methods

from_json(json_dict)

Initialize this object from a JSON dictionary.

to_json()

Convert this object to a JSON-serializable dictionary.

Attributes

driver_agent_http_address

Driver agent http address

driver_node_id

end_time

The time when the job moved into a terminal state.

entrypoint_num_cpus

The quantity of CPU cores to reserve for the entrypoint command.

entrypoint_num_gpus

The number of GPUs to reserve for the entrypoint command.

entrypoint_resources

The quantity of various custom resources to reserve for the entrypoint command.

error_type

message

A message describing the status in more detail.

metadata

Arbitrary user-provided metadata for the job.

runtime_env

The runtime environment for the job.

start_time

The time when the job was started.

status

The status of the job.

entrypoint

The entrypoint command for this job.