-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[ML] Allow force delete for a data frame transform #43961
Description
Found in 7.3.0-SNAPSHOT 03-Jul-2019
In order to delete a failed transform, the user must first _stop?force it and then DELETE.
This is a theoretical two step process but in reality they will probably try DELETE and see a failure, then _stop and see a failure, then _stop?force and then the final DELETE.
We should allow the user to delete a failed transform without directing them through this convoluted path. By having a force-delete, we can force-stop in the background thus removing the persistent task and then delete the data frame transform.
This can be used by the UI in order to delete failed transforms.
For the context of the UI experience, note that the error in the transform (the reason for the failure) should be visible in the messages tab in the UI and therefore we do not need to also show it to the user when they are trying to delete it. UI ref elastic/kibana#40298