如何将如何将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
专家
已提问 8 个月前36 查看次数
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
专家
已回答 8 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则