Skip to content
Snippets Groups Projects

Add feature to delete inactive projects

Merged Huzaifa Iftikhar requested to merge 357376_add_inactive_projects_deletion_feature into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -21,7 +21,7 @@ def perform
notified_inactive_projects = deletion_warning_notified_projects
Project.inactive.without_deleted.find_each(batch_size: 100).with_index do |project, index| # rubocop: disable CodeReuse/ActiveRecord
next unless Feature.enabled?(:inactive_projects_deletion, project.root_namespace, default_enabled: :yaml)
next unless Feature.enabled?(:inactive_projects_deletion, project.root_namespace)
delay = index * INTERVAL
Loading