Skip to content

Check status

Look at a job once and see where it is: its status, the reason if it failed, and the verdict once it's finished. Safe to run as often as you like.

check_status.py

# check_status.py - where has my job got to?
#   usage: python check_status.py <job id>
import os
import sys
from centific import PhysicalAI

client = PhysicalAI(
    api_key  = os.environ["CENTIFIC_API_KEY"],
    base_url = "https://humanoidiq-dev.centific.com",
)

job = client.qc.get(sys.argv[1])

print("status :", job.status)
print("reason :", job.reason or "-")
print("verdict:", job.verdict or "-")

How to use it

python check_status.py qcjob_yLrQuj9XZ2LxIBbVN6f8S2

Sample output

status : grading
reason : -
verdict: -
status : complete
reason : -
verdict: REJECTED
status : failed
reason : mixed_data_types
verdict: -

Reading the verdict

verdict Meaning
VERIFIED Every graded episode passed
REJECTED At least one graded episode did not pass. The report explains why.
- Not finished yet