如何将如何将Asynchronous endpoint的处理时间提升到60分钟?

0

【以下的问题经过翻译处理】 在 sagemaker 中调用Asynchronous endpoint进行批处理时,我遇到以下错误:"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."我发现问题是由于总处理时间超过了默认的 15 分钟窗口。因此,我想知道如何将Asynchronous endpoint的总处理时间延长至 60 分钟,如 aws 文档中所述:https://docs.aws.amazon.com/sagemaker/latest/dg/async-inference.html 谢谢

profile picture
專家
已提問 9 個月前檢視次數 41 次
1 個回答
0

【以下的回答经过翻译处理】 您好,我找到了将异步端点的总处理时间延长至 60 分钟的方法。 调用异步端点时使用此参数“InitationTimeoutSeconds=3600”。response = sm_client.invoke_endpoint_async(EndpointName=endpoint_name,InputLocation=input_file_s3_path,ContentType='text/csv',Accept='application/json',InvocationTimeoutSeconds=3600)

profile picture
專家
已回答 9 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南