From 9a87e5293dcaba94aeb84052ac019eb386d39da0 Mon Sep 17 00:00:00 2001 From: lubu0 Date: Mon, 2 Mar 2026 19:01:56 +0100 Subject: [PATCH] add top-level get_job wrapper function (#8192) --- python-client/wmill/wmill/client.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/python-client/wmill/wmill/client.py b/python-client/wmill/wmill/client.py index ee5f13edf5..b36c7a0401 100644 --- a/python-client/wmill/wmill/client.py +++ b/python-client/wmill/wmill/client.py @@ -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.