Skip to content

[ML] Return 408 when start deployment api times out#89612

Merged
dimitris-athanasiou merged 4 commits intoelastic:mainfrom
dimitris-athanasiou:timeout-on-start-deployment-should-be-400
Aug 25, 2022
Merged

[ML] Return 408 when start deployment api times out#89612
dimitris-athanasiou merged 4 commits intoelastic:mainfrom
dimitris-athanasiou:timeout-on-start-deployment-should-be-400

Conversation

@dimitris-athanasiou
Copy link
Copy Markdown
Contributor

This commit changes the status code returned when the start
trained model deployment api times out from 500 to 408.
In addition, we add validation that the timeout must be positive.

Relates #89585

@elasticsearchmachine elasticsearchmachine added the Team:ML Meta label for the ML team label Aug 25, 2022
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Hi @dimitris-athanasiou, I've created a changelog YAML for you.

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Hi @dimitris-athanasiou, I've updated the changelog YAML for you.

@dimitris-athanasiou dimitris-athanasiou force-pushed the timeout-on-start-deployment-should-be-400 branch from 55fa8f5 to b9c23f6 Compare August 25, 2022 11:02
This commit changes the status code returned when the start
trained model deployment api times out from `500` to `408`.
In addition, we add validation that the timeout must be positive.

Relates elastic#89585
@dimitris-athanasiou dimitris-athanasiou force-pushed the timeout-on-start-deployment-should-be-400 branch from b9c23f6 to 84e0aed Compare August 25, 2022 11:22
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Hi @dimitris-athanasiou, I've created a changelog YAML for you.

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Hi @dimitris-athanasiou, I've updated the changelog YAML for you.

@dimitris-athanasiou
Copy link
Copy Markdown
Contributor Author

@elasticmachine update branch

Copy link
Copy Markdown
Contributor

@edsavage edsavage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dimitris-athanasiou dimitris-athanasiou merged commit 3fca120 into elastic:main Aug 25, 2022
@dimitris-athanasiou dimitris-athanasiou deleted the timeout-on-start-deployment-should-be-400 branch August 25, 2022 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>enhancement :ml Machine learning Team:ML Meta label for the ML team v8.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants