Skip to content

Commit

Permalink
sync mail twice a day (#4785)
Browse files Browse the repository at this point in the history
  • Loading branch information
danlipert authored Jul 12, 2019
1 parent 0122d00 commit 1c0759d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/marketing/management/commands/sync_mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def sync_mailchimp_list(eses, list_id):
def push_to_mailchimp():
print('- push_to_mailchimp')
client = MailChimp(settings.MAILCHIMP_API_KEY, settings.MAILCHIMP_USER)
created_after = timezone.now() - timezone.timedelta(hours=2)
created_after = timezone.now() - timezone.timedelta(hours=12)

eses_funder = EmailSubscriber.objects.filter(
active=True, created_on__gt=created_after,
Expand Down
2 changes: 1 addition & 1 deletion scripts/crontab
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/us


## GITCOIN MARKETING
30 */2 * * * cd gitcoin/coin; bash scripts/run_management_command_if_not_already_running.bash sync_mail >> /var/log/gitcoin/sync_mail.log 2>&1
30 */12 * * * cd gitcoin/coin; bash scripts/run_management_command_if_not_already_running.bash sync_mail >> /var/log/gitcoin/sync_mail.log 2>&1
35 14 * * 1,6 cd gitcoin/coin; bash scripts/run_management_command.bash remarket_bounties >> /var/log/gitcoin/remarket_bounties.log 2>&1
35 11 * * 0,4 cd gitcoin/coin; bash scripts/run_management_command.bash remarket_bounties >> /var/log/gitcoin/remarket_bounties.log 2>&1
45 10 * * * cd gitcoin/coin; bash scripts/run_management_command.bash expiration >> /var/log/gitcoin/expiration_bounty.log 2>&1
Expand Down

0 comments on commit 1c0759d

Please sign in to comment.