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

sync mail every 2 hours to match script #4738

Merged
merged 1 commit into from
Jul 5, 2019
Merged

Conversation

danlipert
Copy link
Contributor

@danlipert danlipert commented Jul 4, 2019

Description

This change to the cron schedule matches the sync_mail job timing to the timing in the script itself (syncing new users from the last 2 hours here: https://github.com/gitcoinco/web/blob/master/app/marketing/management/commands/sync_mail.py#L121)

This issue was discovered when we noted our mailchimp audience list contains about half the actual user count from our platform - since the cronjob syncs new users from the database every 6 hours, and script only looks at users from the last 2 hours, we were missing 2/3 new users. The remaining 1/6 likely came from Sumo

Testing

Will monitor production infrastructure metrics one deployed

@codecov
Copy link

codecov bot commented Jul 4, 2019

Codecov Report

Merging #4738 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4738   +/-   ##
=======================================
  Coverage   30.41%   30.41%           
=======================================
  Files         216      216           
  Lines       17240    17240           
  Branches     2335     2335           
=======================================
  Hits         5244     5244           
  Misses      11788    11788           
  Partials      208      208

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8d1662c...0407dea. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Jul 4, 2019

Codecov Report

Merging #4738 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4738   +/-   ##
=======================================
  Coverage   30.41%   30.41%           
=======================================
  Files         216      216           
  Lines       17240    17240           
  Branches     2335     2335           
=======================================
  Hits         5244     5244           
  Misses      11788    11788           
  Partials      208      208

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8d1662c...0407dea. Read the comment docs.

@danlipert danlipert merged commit 614842b into master Jul 5, 2019
@thelostone-mc thelostone-mc deleted the mailchimp-sync-frequency branch June 27, 2020 00:48
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.

3 participants