add top-level get_job wrapper function (#8192)

This commit is contained in:
lubu0
2026-03-02 19:01:56 +01:00
committed by GitHub
parent cf3ddce68a
commit f412fbc3b7
+13
View File
@@ -1588,6 +1588,19 @@ def get_job_status(job_id: str) -> JobStatus:
return _client.get_job_status(job_id)
@init_global_client
def get_job(job_id: str) -> dict:
"""Get full job details by ID.
Args:
job_id: UUID of the job
Returns:
Job details dictionary
"""
return _client.get_job(job_id=job_id)
@init_global_client
def get_result(job_id: str, assert_result_is_not_none=True) -> Dict[str, Any]:
"""Get the result of a completed job.