如何将如何将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
EXPERTO
preguntada hace 9 meses41 visualizaciones
1 Respuesta
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
EXPERTO
respondido hace 9 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas