Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified verify email rake task #2365

Closed
wants to merge 3 commits into from

Conversation

maricavor
Copy link
Contributor

@maricavor maricavor commented Apr 22, 2022

Related to #2364

Modified verify email rake task so the contacts batch size and limit can be added as options:
bundle exec rake verify_email:check_all -- --batch_size=1000 --limit=100
or
bundle exec rake verify_email:check_all -- -b1000 -l100

By default batch_size is 10000 and limit is 0 (0 = unlimited).

NB! Changing batch_size will not stop the task from finding all the contacts, which need email validation. VerifyEmailsJob will start for each contact. Adjusting limit option will limit the amount of contacts that need to be validated, thus helping to protect from overloading by sidekiq jobs and to troubleshoot task problems in production environment.

@viezly
Copy link

viezly bot commented Apr 22, 2022

Changes preview:

Legend:

👀 Review pull request on Viezly

@OlegPhenomenon
Copy link
Contributor

OlegPhenomenon commented Apr 26, 2022

PR can be close. The issue was different #2368

@maricavor maricavor closed this Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants