Status check job
- class datarobot.models.StatusCheckJob
Tracks asynchronous task status
- Variables:
job_id (
str
) – The ID of the status the job belongs to.
- wait_for_completion(max_wait=600)
Waits for job to complete.
- Parameters:
max_wait (
Optional[int]
) – How long to wait for the job to finish. If the time expires, DataRobot returns the current status.- Returns:
status – Returns the current status of the job.
- Return type:
- get_status()
Retrieve JobStatusResult object with the latest job status data from the server.
- Return type:
- get_result_when_complete(max_wait=600)
Wait for the job to complete, then attempt to convert the resulting json into an object of type self.resource_type :rtype:
A newly created resource
oftype self.resource_type
- class datarobot.models.JobStatusResult
JobStatusResult(status, status_id, completed_resource_url, message)
-
status:
Optional
[str
] Alias for field number 0
-
status_id:
Optional
[str
] Alias for field number 1
-
completed_resource_url:
Optional
[str
] Alias for field number 2
-
message:
Optional
[str
] Alias for field number 3
-
status: