Class: Gitlab::BackgroundMigration::MigratePagesToZipStorage

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/background_migration/migrate_pages_to_zip_storage.rb

Overview

migrates pages from legacy storage to zip format we intentionally use application code here because it has a lot of dependencies including models, carrierwave uploaders and service objects and copying all or part of this code in the background migration doesn't add much value see gitlab.com/gitlab-org/gitlab/-/merge_requests/54578 for discussion

Instance Method Summary collapse

Instance Method Details

#perform(start_id, stop_id) ⇒ Object


11
12
13
14
15
16
# File 'lib/gitlab/background_migration/migrate_pages_to_zip_storage.rb', line 11

def perform(start_id, stop_id)
  ::Pages::MigrateFromLegacyStorageService.new(Gitlab::AppLogger,
                                               ignore_invalid_entries: false,
                                               mark_projects_as_not_deployed: false)
    .execute_for_batch(start_id..stop_id)
end