summaryrefslogtreecommitdiff
path: root/app/workers/database/batched_background_migration_worker.rb
blob: 31208d7a473390c43673f3d9099af61721399b68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module Database
  class BatchedBackgroundMigrationWorker # rubocop:disable Scalability/IdempotentWorker
    include BatchedBackgroundMigration::SingleDatabaseWorker

    def self.enabled?
      Feature.enabled?(:execute_batched_migrations_on_schedule, type: :ops)
    end

    def self.tracking_database
      @tracking_database ||= Gitlab::Database::MAIN_DATABASE_NAME.to_sym
    end
  end
end