Commit 62f01891 authored by Evan Read's avatar Evan Read

Merge branch 'docs/pre-12-9-background-migration-commands' into 'master'

Add pre 12.9 background migration commands

See merge request gitlab-org/gitlab!25580
parents 9f961813 11cbcd55
...@@ -115,17 +115,35 @@ following command: ...@@ -115,17 +115,35 @@ following command:
**For Omnibus installations** **For Omnibus installations**
If using GitLab 12.9 and newer, run:
```shell ```shell
sudo gitlab-rails runner -e production 'puts Gitlab::BackgroundMigration.remaining' sudo gitlab-rails runner -e production 'puts Gitlab::BackgroundMigration.remaining'
``` ```
**For installations from source** If using GitLab 12.8 and older, run the following using a Rails console:
```ruby
puts Sidekiq::Queue.new("background_migration").size
Sidekiq::ScheduledSet.new.select { |r| r.klass == 'BackgroundMigrationWorker' }.size
``` ```
**For installations from source**
If using GitLab 12.9 and newer, run:
```shell
cd /home/git/gitlab cd /home/git/gitlab
sudo -u git -H bundle exec rails runner -e production 'puts Gitlab::BackgroundMigration.remaining' sudo -u git -H bundle exec rails runner -e production 'puts Gitlab::BackgroundMigration.remaining'
``` ```
If using GitLab 12.8 and older, run the following using a Rails console:
```ruby
puts Sidekiq::Queue.new("background_migration").size
Sidekiq::ScheduledSet.new.select { |r| r.klass == 'BackgroundMigrationWorker' }.size
```
## Upgrading to a new major version ## Upgrading to a new major version
Major versions are reserved for backwards incompatible changes. We recommend that Major versions are reserved for backwards incompatible changes. We recommend that
......
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