Welcome to mirror list, hosted at ThFree Co, Russian Federation.

maintenance.rake « tasks « lib - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 493d208972f7e4e86f5f3fabde8303faf3c1aa05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

#   Copyright (c) 2011, Diaspora Inc.  This file is
#   licensed under the Affero General Public License version 3 or later.  See
#   the COPYRIGHT file.

namespace :maintenance do
  desc "Queue users for removal"
  task :queue_users_for_removal => :environment do
    # Queue users for removal due to inactivity
    # Note! settings.maintenance.remove_old_users
    # must still be enabled, this only bypasses
    # scheduling to run the queuing immediately
    Workers::QueueUsersForRemoval.perform_async
  end
end