Skip to content

fix(serve): Move endpoint reuse discovery to deploy time - #6142

Merged
mujtaba1747 merged 2 commits into
aws:master-nova-follow-upsfrom
mujtaba1747:model_reuse_fix
Jul 31, 2026
Merged

fix(serve): Move endpoint reuse discovery to deploy time#6142
mujtaba1747 merged 2 commits into
aws:master-nova-follow-upsfrom
mujtaba1747:model_reuse_fix

Conversation

@mujtaba1747

@mujtaba1747 mujtaba1747 commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Endpoint reuse depends on deploy-time context (instance_type is a
deploy() argument), so discovering and caching a candidate endpoint
during build() could produce a stale or mismatched match. Remove the
build-time endpoint lookup and the _reused_endpoint_name cache
re-validation, and let deploy() perform a single fresh discovery with
the requested instance type. build() now only handles Model reuse.

Also model_builder.build(reuse_resources) shouldn't be blocked on endpoint creation. That happens only at deploy() time.

Also add logging in the reuse status/polling helpers to surface
the current status of a matched resource and progress while waiting on
a Creating resource. Gives user visibility into the polling.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@mujtaba1747
mujtaba1747 merged commit 74c0d58 into aws:master-nova-follow-ups Jul 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants