Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions backend/compact-connect/stacks/reporting_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading