ray.job_submission.JobSubmissionClient.get_job_status#

JobSubmissionClient.get_job_status(job_id: str) JobStatus[source]#

Get the most recent status of a job.

Example

>>> from ray.job_submission import JobSubmissionClient
>>> client = JobSubmissionClient("http://127.0.0.1:8265") 
>>> client.submit_job(entrypoint="echo hello") 
>>> client.get_job_status("raysubmit_4LamXRuQpYdSMg7J") 
'SUCCEEDED'
Parameters:

job_id – The job ID or submission ID of the job whose status is being requested.

Returns:

The JobStatus of the job.

Raises:

RuntimeError – If the job does not exist or if the request to the job server fails.