describe_enrichment_job
¶
describe_enrichment_job(
workspace_name: WorkspaceName,
job_id: ID,
*,
config_overrides: Optional[IoTSiteWiseClientConfig] = None,
) -> DescribeEnrichmentJobResponse
Retrieves detailed information about a specific enrichment job, including its current status, configuration, and timestamps.
Use Cases
- Monitor job progress by checking status updates with DescribeEnrichmentJob
- Retrieve the complete job configuration submitted during creation
- Debug failed jobs by examining the failureMessage field
- Track job lifecycle with creation, update, completion, and cancellation timestamps
Status Monitoring
Jobs progress through statuses: PENDING → RUNNING → terminal state
Terminal states:
- COMPLETED: Job finished successfully; query IoT SiteWise for semantic search results
- FAILED: Job encountered an error; check failureMessage for details
- TIMED_OUT: Job exceeded maximum processing time
- CANCELLED: Job was cancelled via CancelEnrichmentJob
Response Fields
The response includes:
- Current job status and type
- Full job configuration as originally submitted
- Lifecycle timestamps (created, updated, completed, cancelled)
- Failure details if status is FAILED
Parameters:
-
workspace_name(WorkspaceName) –The name of the IoT SiteWise workspace containing the enrichment job.
-
job_id(ID) –The unique identifier of the enrichment job to retrieve. This is the jobId returned by CreateEnrichmentJob.
Raises:
-
AccessDeniedException–Access is denied.
-
ConflictingOperationException–Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time.
-
InternalFailureException–IoT SiteWise can't process your request right now. Try again later.
-
InvalidRequestException–The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters. Check your request and try again.
-
LimitExceededException–You've reached the quota for a resource. For example, this can occur if you're trying to associate more than the allowed number of child assets or attempting to create more than the allowed number of properties for an asset model.
For more information, see Quotas in the IoT SiteWise User Guide.
-
ResourceNotFoundException–The requested resource can't be found.
-
ThrottlingException–Your request exceeded a rate limit. For example, you might have exceeded the number of IoT SiteWise assets that can be created per second, the allowed number of messages per second, and so on.
For more information, see Quotas in the IoT SiteWise User Guide.
-
UnknownServiceError–The service returned an error code this client does not model.