get_error_diagnosis_status¶
- EtlJobsApi.get_error_diagnosis_status(id, executionid, role_id, _request_timeout=None, _request_auth=None, _content_type=None, _headers=None, _host_index=0)¶
Get AI error diagnosis for a job execution
Returns ErrorDiagnosisStatus and ErrorDiagnosisMetadata stored on the execution. Requires AI services and Jobs AI. Defaults to status pending and metadata {} when diagnosis has not run.
- Parameters:
id (str) – UUID of the parent ETL job. (required)
executionid (str) – Glue JobRun / execution ID to read diagnosis for. (required)
role_id (str) – Amorphic role ID sent for authorization. Missing this header returns AUTH-1001. (required)
_request_timeout (int, tuple(int, int), optional) – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
_request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
_content_type (str, Optional) – force content-type for the request.
_headers (dict, optional) – set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
_host_index (int, optional) – set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
- Return type:
- Returns:
Returns the result object.
Request and Response Examples¶
HTTP: GET /jobs/{id}/executions/{executionid}/diagnosis
Success (HTTP 200)¶
Diagnosis status (pending, diagnosing, completed, or failed) and metadata payload.
Request / response example
{
"ErrorDiagnosisStatus": "pending",
"ErrorDiagnosisMetadata": {}
}
Errors¶
Documented error codes: AI-1004, GE-1008.
HTTP 400
AI services not configured, Jobs AI disabled (AI-1004), missing job/execution, or insufficient access.
Request / response example
{
"Message": "Error diagnosis is not available since AI services are not configured in this environment."
}
HTTP 500
Uncaught backend failure. Typical Message is “GE-1008 - Could not complete the request. Please try again.”
Request / response example
{
"Message": "GE-1008 - Could not complete the request. Please try again."
}