Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increased the safety limit of the deleted account purger #38441

Merged
merged 4 commits into from
Jan 12, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions dashboard/lib/expired_deleted_account_purger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ def initialize(options = {})
# Do nothing if more than this number of accounts would be purged in total.
# We may need to adjust this over time as activity increases on our site.
# This is a loose constraint because cascading student deletes make this a very spiky metric.
# 4000 is ~0.01% of our user rows.
# We expect this to stay below 1500 during September 2018.
@max_accounts_to_purge = options[:max_accounts_to_purge] || 4000
# 8000 is ~0.01% of our user rows in 2021. We expect this to stay below 2000 during regular
# months and 5000 during the HOC week purge (1st week of Jan).
@max_accounts_to_purge = options[:max_accounts_to_purge] || 8000
raise ArgumentError.new('max_accounts_to_purge must be Integer') unless @max_accounts_to_purge.is_a? Integer

reset
Expand Down