Skip to content

Commit

Permalink
Revert "fix(newsletter): reduce the sending interval to send the late…
Browse files Browse the repository at this point in the history
…st newsletter earlier in the day"

This reverts commit 1d79ac7.
  • Loading branch information
arnaudambro committed Jul 13, 2023
1 parent 1d79ac7 commit b298a00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/ecosante/newsletter/tasks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def setup_periodic_tasks(sender, **kwargs):
if sender.conf.env != "production":
return
sender.add_periodic_task(
crontab(minute='30', hour='06-10', day_of_week='*/1'),
crontab(minute='30', hour='06-13', day_of_week='*/1'),
# this cron is sending the daily newsletter
# the newsletter is sent only if all the indicators exists
# it's repeated every hour to try again if an indicator was missing in the previous run
Expand All @@ -23,7 +23,7 @@ def setup_periodic_tasks(sender, **kwargs):
routing_key='send_newsletter.import_send_and_report'
)
sender.add_periodic_task(
crontab(minute='30', hour='11', day_of_week='*/1'),
crontab(minute='30', hour='14', day_of_week='*/1'),
# this cron is the final call to send the daily newsletter
# the newsletter is sent even if some indicators are missing
import_send_and_report.s(
Expand Down

0 comments on commit b298a00

Please sign in to comment.