ray.util.state.common.JobState#

class ray.util.state.common.JobState(*, type: JobType, job_id: str | None = None, submission_id: str | None = None, driver_info: DriverInfo | None = None, status: JobStatus, entrypoint: str, message: str | None = None, error_type: str | None = None, start_time: int | None = None, end_time: int | None = None, metadata: Dict[str, str] | None = None, runtime_env: Dict[str, Any] | None = None, driver_agent_http_address: str | None = None, driver_node_id: str | None = None, driver_exit_code: int | None = None)[源代码]#

基类:StateSchema, JobDetails

Ray 的 Job API 或驱动程序作业提交的工作状态

以下列可以用于 --filter 选项。

submission_id

状态

类型

job_id

classmethod filterable_columns() Set[str][源代码]#

返回一个可过滤列的列表

classmethod humanify(state: dict) dict[源代码]#

将给定的状态对象转换为人类可读的格式。

classmethod list_columns(detail: bool = False) List[str][源代码]#

返回列的列表。