Call SnapshotPurge with --skip-if-in-progress
@@ -70,7 +70,7 @@ func (e *Engine) SnapshotRevert(name string) error {
}
func (e *Engine) SnapshotPurge() error {
- if _, err := e.ExecuteEngineBinaryWithoutTimeout("snapshot", "purge"); err != nil {
+ if _, err := e.ExecuteEngineBinaryWithoutTimeout("snapshot", "purge", "--skip-if-in-progress"); err != nil {
return errors.Wrapf(err, "error starting snapshot purge")
}
logrus.Debugf("Volume %v snapshot purge started", e.Name())
