I use the update_endpoint method of the boto3 SageMaker client.
import boto3
client = boto3.client('sagemaker')
endpoint_name = 'my-endpoint'
desired_status = 'OutOfService'
response = client.update_endpoint(
EndpointName=endpoint_name,
DesiredStatus=desired_status
)
print(response)
Response { "errorMessage": "Syntax error in module 'lambda_function': cannot assign to operator (lambda_function.py, line 6)",
I’m seeking a way to schedule the starting and stopping of SageMaker Endpoint. Please help me is there is any way to set desire count zero or stop endpoint?
source https://stackoverflow.com/questions/75999019/stop-sagemaker-endpoint
Comments
Post a Comment