aws-samples / amazon-textract-serverless-large-scale-document-processing

Process documents at scale using Amazon Textract
Apache License 2.0
331 stars 165 forks source link

Sleep time not connected to usage constraints #54

Open dannellyz opened 1 year ago

dannellyz commented 1 year ago

In the job results processor the sleep on longer pdfs creates large delays. Can this instead be inferred from usage limits rather than an arbitrary setting of 5?

https://github.com/aws-samples/amazon-textract-serverless-large-scale-document-processing/blob/2d8b97cffb78d7160c8d332f9f39ca18c3e6704b/textract-pipeline/lambda/jobresultprocessor/lambda_function.py#L28