2018-11-08 19:23:39 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-04-08 14:13:33 +05:30
|
|
|
class BackgroundMigrationWorker # rubocop:disable Scalability/IdempotentWorker
|
2022-01-26 12:08:38 +05:30
|
|
|
include BackgroundMigration::SingleDatabaseWorker
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2022-01-26 12:08:38 +05:30
|
|
|
def self.tracking_database
|
|
|
|
@tracking_database ||= Gitlab::BackgroundMigration::DEFAULT_TRACKING_DATABASE
|
2018-11-18 11:00:15 +05:30
|
|
|
end
|
|
|
|
|
2022-01-26 12:08:38 +05:30
|
|
|
def self.unhealthy_metric_name
|
|
|
|
@unhealthy_metric_name ||= :background_migration_database_health_reschedules
|
2018-11-18 11:00:15 +05:30
|
|
|
end
|
2017-09-10 17:25:29 +05:30
|
|
|
end
|