Commit 841f45b7 authored by Vasilii Iakliushin's avatar Vasilii Iakliushin

Merge branch '340478-fix-migration-worker' into 'master'

Fix Elastic::MigrationWorker current_migration

See merge request gitlab-org/gitlab!69958
parents 1a70084d f682052a
...@@ -87,9 +87,9 @@ module Elastic ...@@ -87,9 +87,9 @@ module Elastic
end end
def current_migration def current_migration
completed_migrations = Elastic::MigrationRecord.load_versions(completed: true) uncompleted_migrations = Elastic::MigrationRecord.load_versions(completed: false)
Elastic::DataMigrationService.migrations.find { |migration| !completed_migrations.include?(migration.version) } Elastic::DataMigrationService.migrations.find { |migration| uncompleted_migrations.include?(migration.version) }
end end
def pause_indexing!(migration) def pause_indexing!(migration)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment