Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ci_database_worker.rb « batched_background_migration « database « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 417af4c7172807495e3350771de4488654ee2bab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

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

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

      def execution_worker_class
        @execution_worker_class ||= Database::BatchedBackgroundMigration::CiExecutionWorker
      end
    end
  end
end