diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-01-15 04:34:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-15 04:34:28 +0100 |
commit | ed867eca9dbd7d798bc7179dbc13c4f1edc238ad (patch) | |
tree | ca8ae2e2a7745fed4d3659e88c16047c97e8d4c3 /lib/tasks | |
parent | 08e4c78e78358c2847967e9cc34b4a6497be97e2 (diff) |
Move e-mail digest task to sidekiq, reduce workload, improve hint (#6252)
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/mastodon.rake | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake index 33969d470..38dbed982 100644 --- a/lib/tasks/mastodon.rake +++ b/lib/tasks/mastodon.rake @@ -171,11 +171,10 @@ namespace :mastodon do end namespace :emails do - desc 'Send out digest e-mails' + desc 'Send out digest e-mails (deprecated)' task digest: :environment do - User.confirmed.joins(:account).where(accounts: { silenced: false, suspended: false }).where('current_sign_in_at < ?', 20.days.ago).find_each do |user| - DigestMailerWorker.perform_async(user.id) - end + # No-op + # This task is now executed via sidekiq-scheduler end end |