Skip to content

Commit

Permalink
fix: delay report sending on monday, not sunday (#19052)
Browse files Browse the repository at this point in the history
* delay report sending on monday, not sunday

* also change minute
  • Loading branch information
raquelmsmith authored Dec 4, 2023
1 parent a1237d2 commit 8d41005
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions posthog/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ def setup_periodic_tasks(sender: Celery, **kwargs):
# Send all instance usage to the Billing service
# Sends later on Sunday due to clickhouse things that happen on Sunday at ~00:00 UTC
sender.add_periodic_task(
crontab(hour="2", minute="5", day_of_week="sun"),
crontab(hour="2", minute="15", day_of_week="mon"),
send_org_usage_reports.s(),
name="send instance usage report",
)
sender.add_periodic_task(
crontab(hour="0", minute="5", day_of_week="mon,tue,wed,thu,fri,sat"),
crontab(hour="0", minute="15", day_of_week="tue,wed,thu,fri,sat,sun"),
send_org_usage_reports.s(),
name="send instance usage report",
)
Expand Down

0 comments on commit 8d41005

Please sign in to comment.