Skip to content
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

[ML] allow unran/incomplete forecasts to be deleted for stopped/failed jobs #57152

Merged

Conversation

benwtrent
Copy link
Member

@benwtrent benwtrent commented May 26, 2020

If a job is NOT opened, forecasts should be able to be deleted, no matter their state.

This also fixes a bug with expanding forecast IDs. We should check for wildcard * and _all when expanding the ids

closes #56419

@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (:ml)

Copy link
Contributor

@droberts195 droberts195 left a comment

Choose a reason for hiding this comment

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

LGTM, but there is one non-standard aspect to the tests that ought to be changed before merging

@benwtrent benwtrent merged commit cce3b1e into elastic:master May 26, 2020
@benwtrent benwtrent deleted the feature/ml-allow-fix-forecast-delete branch May 26, 2020 19:00
benwtrent added a commit to benwtrent/elasticsearch that referenced this pull request May 26, 2020
…d jobs (elastic#57152)

If a job is NOT opened, forecasts should be able to be deleted, no matter their state.

This also fixes a bug with expanding forecast IDs. We should check for wildcard `*` and `_all` when expanding the ids

closes elastic#56419
benwtrent added a commit to benwtrent/elasticsearch that referenced this pull request May 26, 2020
…d jobs (elastic#57152)

If a job is NOT opened, forecasts should be able to be deleted, no matter their state.

This also fixes a bug with expanding forecast IDs. We should check for wildcard `*` and `_all` when expanding the ids

closes elastic#56419
benwtrent added a commit that referenced this pull request May 26, 2020
…d jobs (#57152) (#57173)

If a job is NOT opened, forecasts should be able to be deleted, no matter their state.

This also fixes a bug with expanding forecast IDs. We should check for wildcard `*` and `_all` when expanding the ids

closes #56419
benwtrent added a commit that referenced this pull request May 26, 2020
…d jobs (#57152) (#57172)

If a job is NOT opened, forecasts should be able to be deleted, no matter their state.

This also fixes a bug with expanding forecast IDs. We should check for wildcard `*` and `_all` when expanding the ids

closes #56419
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ML] Force closing an ML job can leave unfinished forecast jobs behind
4 participants