Skip to content

[ML] Return a Conflict status code if the model deployment is stopped by a user #125204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 24, 2025

Conversation

davidkyle
Copy link
Member

If a user stops a trained model deployment while it is being used any pending requests are failed with an 500 Internal Server Error status code. The status code is incorrect in this case as the process has been stopped by the user. If the process has crashed a 500 status code is still returned.

Closes #123745

@davidkyle davidkyle added >bug :ml Machine learning v9.1.0 labels Mar 19, 2025
@elasticsearchmachine elasticsearchmachine added the Team:ML Meta label for the ML team label Mar 19, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

@elasticsearchmachine
Copy link
Collaborator

Hi @davidkyle, I've created a changelog YAML for you.

@jonathan-buttner
Copy link
Contributor

Should we backport to 8.19?

@davidkyle davidkyle added v8.19.0 auto-backport Automatically create backport pull requests when merged labels Mar 21, 2025
@davidkyle davidkyle merged commit 9ec61d5 into elastic:main Mar 24, 2025
17 checks passed
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.x

davidkyle added a commit to davidkyle/elasticsearch that referenced this pull request Mar 24, 2025
omricohenn pushed a commit to omricohenn/elasticsearch that referenced this pull request Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged >bug :ml Machine learning Team:ML Meta label for the ML team v8.19.0 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Correct response code for "inference canceled as process is stopping" failures
3 participants