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

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

class BackgroundMigrationWorker # rubocop:disable Scalability/IdempotentWorker
  include BackgroundMigration::SingleDatabaseWorker

  def self.tracking_database
    @tracking_database ||= Gitlab::BackgroundMigration::DEFAULT_TRACKING_DATABASE
  end

  def self.unhealthy_metric_name
    @unhealthy_metric_name ||= :background_migration_database_health_reschedules
  end
end