Projects pending_delete are not being retried during the deletion process
Problem
The current implementation excludes projects with pending_delete: true from the scope used to retrieve projects for deletion. This prevents the retry mechanism from working properly for projects that have already been pending_delete but failed to complete the deletion process.
Root Cause
The exclusion logic in the project scope (referenced in app/models/project.rb#L681) excludes projects with pending_delete: true, meaning they cannot be retried if their initial deletion attempt fails.
Expected Behavior
Projects marked for deletion should be included in retry attempts to ensure successful completion of the deletion process.
Edited by Christina Lohr