-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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 force stopping failed and stopping DF analytics #54650
[ML] Allow force stopping failed and stopping DF analytics #54650
Conversation
Pinging @elastic/ml-core (:ml) |
failed.add(analyticsId); | ||
break; | ||
default: | ||
break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know you've only moved this in this PR, but maybe it's still best to add an assert
in the default
case just in case someone adds a new state but doesn't add it here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
8f2fe6d
to
fe7745e
Compare
Force stopping a failed job used to work but it now puts the job in `stopping` state and hangs. In addition, force stopping a `stopping` job is not handled. This commit addresses those issues with force stopping data frame analytics. It inlines the approach with that followed for anomaly detection jobs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…tic#54650) Force stopping a failed job used to work but it now puts the job in `stopping` state and hangs. In addition, force stopping a `stopping` job is not handled. This commit addresses those issues with force stopping data frame analytics. It inlines the approach with that followed for anomaly detection jobs. Backport of elastic#54650
…) (#54712) Force stopping a failed job used to work but it now puts the job in `stopping` state and hangs. In addition, force stopping a `stopping` job is not handled. This commit addresses those issues with force stopping data frame analytics. It inlines the approach with that followed for anomaly detection jobs. Backport of #54650
…) (#54715) Force stopping a failed job used to work but it now puts the job in `stopping` state and hangs. In addition, force stopping a `stopping` job is not handled. This commit addresses those issues with force stopping data frame analytics. It inlines the approach with that followed for anomaly detection jobs. Backport of #54650
After elastic#54650 we catch `TaskCancelledException` when we wait for reindexing to complete as it may be thrown. However, when that happens we do not mark the task as completed. This results in the stop request never returning and the failures we saw in elastic#55068. Closes elastic#55068
…xing (elastic#55286) After elastic#54650 we catch `TaskCancelledException` when we wait for reindexing to complete as it may be thrown. However, when that happens we do not mark the task as completed. This results in the stop request never returning and the failures we saw in elastic#55068. Closes elastic#55068 Backport of elastic#55286
…xing (#55286) (#55290) After #54650 we catch `TaskCancelledException` when we wait for reindexing to complete as it may be thrown. However, when that happens we do not mark the task as completed. This results in the stop request never returning and the failures we saw in #55068. Closes #55068 Backport of #55286
…xing (#55286) (#55295) After #54650 we catch `TaskCancelledException` when we wait for reindexing to complete as it may be thrown. However, when that happens we do not mark the task as completed. This results in the stop request never returning and the failures we saw in #55068. Closes #55068 Backport of #55286
Force stopping a failed job used to work but it
now puts the job in
stopping
state and hangs.In addition, force stopping a
stopping
job isnot handled.
This commit addresses those issues with force
stopping data frame analytics. It inlines the
approach with that followed for anomaly detection
jobs.