2018-06-27 07:23:28 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-02-19 18:09:10 +00:00
|
|
|
class BackgroundMigrationWorker # rubocop:disable Scalability/IdempotentWorker
|
2021-12-01 18:15:19 +00:00
|
|
|
include BackgroundMigration::SingleDatabaseWorker
|
2017-06-02 15:12:36 +00:00
|
|
|
|
2021-12-01 18:15:19 +00:00
|
|
|
def self.tracking_database
|
|
|
|
@tracking_database ||= Gitlab::Database::MAIN_DATABASE_NAME.to_sym
|
2018-07-19 15:16:47 +00:00
|
|
|
end
|
|
|
|
|
2021-12-01 18:15:19 +00:00
|
|
|
def self.unhealthy_metric_name
|
|
|
|
@unhealthy_metric_name ||= :background_migration_database_health_reschedules
|
2018-07-19 15:16:47 +00:00
|
|
|
end
|
2017-06-02 15:12:36 +00:00
|
|
|
end
|