내용으로 건너뛰기

how to extend the total processing time for Asynchronous endpoint upto 60 minutes?

1

I'm facing the below error when asynchronous endpoint is invoked in sagemaker for batch processing:

"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."

I found that the issue is due to the total processing time exceeds the default 15min window.

So, I would like to know how to extend the total processing time for Asynchronous endpoint upto 60 minutes as mentioned in aws docs: https://docs.aws.amazon.com/sagemaker/latest/dg/async-inference.html

Thank you.

질문됨 3년 전385회 조회
1개 답변
0
수락된 답변

Hi, I found the solution to extend the total processing time for Asynchronous endpoint upto 60 minutes. Use this parameter "InvocationTimeoutSeconds=3600" when invoking the async endpoint.

code looks like below:

response = sm_client.invoke_endpoint_async(
EndpointName=endpoint_name,
InputLocation=input_file_s3_path,
ContentType='text/csv',
Accept='application/json',
InvocationTimeoutSeconds=3600    
)

Thank you.

답변함 3년 전

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

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