diff options
Diffstat (limited to 'app/workers/database')
-rw-r--r-- | app/workers/database/drop_detached_partitions_worker.rb | 2 | ||||
-rw-r--r-- | app/workers/database/partition_management_worker.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/database/drop_detached_partitions_worker.rb b/app/workers/database/drop_detached_partitions_worker.rb index 1e4dc20a0d2..126c46a338b 100644 --- a/app/workers/database/drop_detached_partitions_worker.rb +++ b/app/workers/database/drop_detached_partitions_worker.rb @@ -12,7 +12,7 @@ module Database def perform Gitlab::Database::Partitioning.drop_detached_partitions ensure - Gitlab::Database::Partitioning::PartitionMonitoring.new.report_metrics + Gitlab::Database::Partitioning.report_metrics end end end diff --git a/app/workers/database/partition_management_worker.rb b/app/workers/database/partition_management_worker.rb index 5a1f139dc29..ba1ad7a0e81 100644 --- a/app/workers/database/partition_management_worker.rb +++ b/app/workers/database/partition_management_worker.rb @@ -14,7 +14,7 @@ module Database def perform Gitlab::Database::Partitioning.sync_partitions ensure - Gitlab::Database::Partitioning::PartitionMonitoring.new.report_metrics + Gitlab::Database::Partitioning.report_metrics end end end |