如何将如何将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ヶ月前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
エキスパート
回答済み 8ヶ月前

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

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

質問に答えるためのガイドライン

関連するコンテンツ