Get Evaluation Job Status#
To get the status of an evaluation job, send a GET
request to the jobs endpoint, as shown in the following code.
Job Status Values#
Status |
Description |
---|---|
|
The job is created, but not yet scheduled. |
|
The job is waiting for resource allocation. |
|
The job is currently running. |
|
The job has completed successfully. |
|
The job has been cancelled by the user. |
|
The job failed to run and terminated. |
Options#
API#
curl -X "GET" "${EVALUATOR_SERVICE_URL}/v1/evaluation/jobs/<job-id>/status" \
-H 'accept: application/json'
endpoint = f"{EVALUATOR_SERVICE_URL}/v1/evaluation/jobs/<job-id>/status"
response = requests.get(endpoint).json()
# Get the status.
job_status = response['status']
print(f"Job status: {job_status}")
Example Response
{
"message": "Job completed successfully",
"task_status": {},
"progress": null
}