mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Add thirs status - verification failed
This commit is contained in:
parent
f8eea08357
commit
56ac816dd1
13 changed files with 96 additions and 40 deletions
|
@ -2,9 +2,7 @@ namespace :verify_email do
|
|||
desc 'Stars verifying email jobs'
|
||||
task all_domains: :environment do
|
||||
verifications_by_domain = EmailAddressVerification.not_verified_recently.group_by(&:domain)
|
||||
verifications_by_domain.each do |domain, verifications|
|
||||
next if domain == 'not_found'
|
||||
|
||||
verifications_by_domain.each do |_domain, verifications|
|
||||
ver = verifications.sample # Verify random email to not to clog the SMTP servers
|
||||
VerifyEmailsJob.enqueue(ver.id)
|
||||
next
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue