mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-18 16:02:10 +00:00
add top-level get_job wrapper function (#8192)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user