Skip to content
Snippets Groups Projects

Cleanup leftovers in packages_dependencies table

All threads resolved!
Compare and Show latest version
4 files
+ 14
10
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -5,7 +5,6 @@ module Cleanup
@@ -5,7 +5,6 @@ module Cleanup
class DeleteOrphanedDependenciesWorker
class DeleteOrphanedDependenciesWorker
include ApplicationWorker
include ApplicationWorker
include LimitedCapacity::Worker
include LimitedCapacity::Worker
include Gitlab::Utils::StrongMemoize
data_consistency :always
data_consistency :always
queue_namespace :package_cleanup
queue_namespace :package_cleanup
@@ -25,7 +24,6 @@ def perform_work
@@ -25,7 +24,6 @@ def perform_work
def remaining_work_count
def remaining_work_count
orphaned_dependencies.limit(max_running_jobs + 1).count
orphaned_dependencies.limit(max_running_jobs + 1).count
end
end
strong_memoize_attr :remaining_work_count
def max_running_jobs
def max_running_jobs
MAX_CAPACITY
MAX_CAPACITY
Loading