Skip to content

"Deleted projects" does not get deleted

Summary

I have deleted several projects and they have all been tagged with pending removal. After waiting for a week the projects still has not been deleted.

Steps to reproduce

  1. Create a project on gitlab.com
  2. Add something to it (or not)
  3. Delete project
  4. Wait for project to be deleted

Example Project

What is the current bug behavior?

Projects don't get deleted

What is the expected correct behavior?

Project should no longer exist

Output of checks

This bug happens on GitLab.com


Theoretical Issue

The cron worker that finds projects scheduled for delection adds an artifical spacing between jobs. This increases exponentially with each project scheduled for deletion.

The table below shows how long it would take the last project picked up by the cron job to execute.

Last deletion starts after
5 projects 25 minutes
100 projects 8 hours
1000 projects 3 days

Proposal

Remove this artifical spacing between jobs and allow sidekiq to schedule the jobs instead.

Edited by Dan Jensen