From 8980ea4ed93e18ae69d1daf0a69d9c208d766552 Mon Sep 17 00:00:00 2001 From: Landon Shumway Date: Wed, 17 Dec 2025 08:47:59 -0600 Subject: [PATCH] Update weekly report to run Sunday --- backend/compact-connect/stacks/reporting_stack.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/backend/compact-connect/stacks/reporting_stack.py b/backend/compact-connect/stacks/reporting_stack.py index 5ccb2cb71..19bde28ff 100644 --- a/backend/compact-connect/stacks/reporting_stack.py +++ b/backend/compact-connect/stacks/reporting_stack.py @@ -195,8 +195,11 @@ def _add_transaction_reporting_chain(self, persistent_stack: ps.PersistentStack) Rule( self, f'{compact.capitalize()}-WeeklyTransactionReportRule', - # Send weekly reports every Sunday at 2:00 AM UTC - schedule=Schedule.cron(week_day='SUN', hour='2', minute='0', month='*', year='*'), + # Send weekly reports every Monday at 4:00 AM UTC (Sunday 11 PM EST) + # this gives the transaction collection process several days + # to ensure we've collected all transactions from authorize.net + # for the previous week, even if authorize.net settles batches late. + schedule=Schedule.cron(week_day='MON', hour='4', minute='0', month='*', year='*'), targets=[ LambdaFunction( handler=self.transaction_reporter,