Skip to content

Commit 236feb9

Browse files
committed
Change the logic from waiting endpoint be inservice, to refresh
1 parent 973e9ad commit 236feb9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

sagemaker-serve/tests/integ/test_huggingface_integration.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ def build_and_deploy():
101101
core_endpoint = model_builder.deploy(endpoint_name=f"{ENDPOINT_NAME_PREFIX}-{unique_id}")
102102
logger.info(f"Endpoint Successfully Created: {core_endpoint.endpoint_name}")
103103

104-
# Wait for endpoint to be in service
105-
logger.info("Waiting for endpoint to be in service...")
106-
core_endpoint.wait_for_status(status="InService")
107-
logger.info("Endpoint is now in service")
104+
# Verify endpoint exists before proceeding
105+
logger.info("Verifying endpoint was created...")
106+
core_endpoint.refresh()
107+
logger.info(f"Endpoint status: {core_endpoint.endpoint_status}")
108108

109109
return core_model, core_endpoint
110110

0 commit comments

Comments
 (0)