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. |
To Get Evaluation Job Status#
Choose one of the following options to get evaluation job status.
import os
from nemo_microservices import NeMoMicroservices
# Initialize the client
client = NeMoMicroservices(
base_url=os.environ['EVALUATOR_BASE_URL']
)
# Get job status
status_response = client.evaluation.jobs.status("job-id")
# Get the status details
print(f"Status: {status_response.status}")
print(f"Message: {status_response.message}")
print(f"Progress: {status_response.progress}")
curl -X "GET" "${EVALUATOR_BASE_URL}/evaluation/jobs/<job-id>/status" \
-H 'accept: application/json'
Example Response
{
"message": "Job completed successfully",
"task_status": {},
"progress": null
}