如何将如何将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달 전39회 조회
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠