How to check users' asynchronous status tasks from AWS comprehend

81 Views Asked by At

Dears, I am new to AWS and I am looking for function/code to check users' asynchronous status tasks from AWS comprehend. I am checking boto3 docs - https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/comprehend.html#client but not able to find my answer. can you please guide me thanks

1

There are 1 best solutions below

0
Mia Chang On

To check the async job status for Amazon Comprehend, you can use describe job API. For instance, describe_dominant_language_detection_job(), the response will include the Job Status information:

'JobStatus': 'SUBMITTED'|'IN_PROGRESS'|'COMPLETED'|'FAILED'.

Reference: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/comprehend.html#Comprehend.Client.describe_dominant_language_detection_job