Add Sidetiq webview to the Sidekiq monitoring panel Add rake task maintenance:queue_users_for_removal This basically just triggers an immediate run of the normal maintenance remove old users functionality that is normally (if enabled) scheduled to run once a day via sidetiq Add extra safety when checking for user removal due to inactivity. Now also user.last_seen will also be checked to make sure a user will not be removed in the event that the Devise rememember me login functionality has stopped the users remove_after timestamp from being removed. Add initializer for maintenance job. Add warning about mail being disabled if remove_old_users maintenance is enabled.
16 lines
No EOL
693 B
Ruby
16 lines
No EOL
693 B
Ruby
# Copyright (c) 2010-2011, Diaspora Inc. This file is
|
|
# licensed under the Affero General Public License version 3 or later. See
|
|
# the COPYRIGHT file.
|
|
|
|
unless AppConfig.mail.enable?
|
|
if AppConfig.settings.maintenance.remove_old_users.enable?
|
|
# The maintenance job remove_old_users will warn users
|
|
# of inactivity removal before removing the users.
|
|
# Warn podmins here that enable it but don't have mail enabled.
|
|
puts "
|
|
WARNING: Maintenance that removes inactive users is enabled
|
|
but mail is disabled! This means there will be no warning email
|
|
sent to users whose accounts are flagged for removal!
|
|
See configuration setting 'settings.maintenance.remove_old_users'."
|
|
end
|
|
end |