Docs feedback: Probable wrong command
In the Background Migrations page at the v14 paragraph the following is written
sudo gitlab-rails runner -e production 'puts Gitlab::Database::BackgroundMigration::BatchedMigration.queued.count'
Since the paragraph is about non-batched migrations, wouldn't the command be
sudo gitlab-rails runner -e production 'puts Gitlab::Database::BackgroundMigrationJob.pending.count'
In the instance I am currently upgrading (currently at 14.3.6
), the first reports 0
(same as the batched migrations display) while the second reports the correct 8
as per
gitlab-psql -c "select status, count(*) from background_migration_jobs group by status;"
status | count
--------+-------
0 | 8
1 | 4
(2 rows)