Docs for marking a batched BG migration finished
All threads resolved!
All threads resolved!
Compare changes
@@ -336,19 +336,19 @@ When the background migration is determined to be "safe" to skip, the migration
@@ -336,19 +336,19 @@ When the background migration is determined to be "safe" to skip, the migration
connection = ApplicationRecord.connection # or Ci::ApplicationRecord.connection, depending on which DB was the migration scheduled
migration.batched_jobs.update_all(status: Gitlab::Database::BackgroundMigration::BatchedJob.state_machine.states['succeeded'].value)