Migrate user records to ghost in batch job runs
Compare changes
Files
6- Imre Farkas authored
Changelog: added
app/models/users/migrate_to_ghost_user.rb
0 → 100644
+ 12
− 0
It splits Users::DestroyService
into a 2 steps workflow:
Users::DestroyService
Users::MigrateRecordsToGhostUserService
Migration and deletion is now done in batches asynchronously with a limited execution time:
Users::MigrateRecordsToGhostUserInBatchesWorker
is a cron worker running every minutesUsers::MigrateRecordsToGhostUserInBatchesService
with execution time limit of 30 secondsUsers::MigrateRecordsToGhostUserService
is executed for each userRelated to https://gitlab.com/gitlab-org/gitlab/-/issues/366655.
These are strongly recommended to assist reviewers and reduce the time to merge your change.
Numbered steps to set up and validate the change are strongly suggested.
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
Changelog: added