スキップしてコンテンツを表示

how to extend the total processing time for Asynchronous endpoint upto 60 minutes?

1

I'm facing the below error when asynchronous endpoint is invoked in sagemaker for batch processing:

"Your invocation timed out while waiting for a response from container primary. Review the latency metrics for each container in Amazon CloudWatch, resolve the issue, and try again."

I found that the issue is due to the total processing time exceeds the default 15min window.

So, I would like to know how to extend the total processing time for Asynchronous endpoint upto 60 minutes as mentioned in aws docs: https://docs.aws.amazon.com/sagemaker/latest/dg/async-inference.html

Thank you.

質問済み 3年前386ビュー
1回答
0
承認された回答

Hi, I found the solution to extend the total processing time for Asynchronous endpoint upto 60 minutes. Use this parameter "InvocationTimeoutSeconds=3600" when invoking the async endpoint.

code looks like below:

response = sm_client.invoke_endpoint_async(
EndpointName=endpoint_name,
InputLocation=input_file_s3_path,
ContentType='text/csv',
Accept='application/json',
InvocationTimeoutSeconds=3600    
)

Thank you.

回答済み 3年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

関連するコンテンツ