Class: CleanupSignupsWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
app/workers/cleanup_signups_worker.rb

Overview

Background job to clean up data related to signups.

This is a Sidekiq worker

Instance Method Summary collapse

Instance Method Details

#performObject

Clean up outdated signup data in the db:

  • reminder emails are sent for unconfirmed users

  • old unconfirmed registrations are removed from the db. The interval after which unconfirmed registrations are discarded

is configurable

This method is intended to be invoked from Sidekiq, which means it is performed in the background.


22
23
24
25
# File 'app/workers/cleanup_signups_worker.rb', line 22

def perform
  SignupsManager.send_confirmation_reminders
  SignupsManager.destroy_old_signups
end