This commit is contained in:
2025-10-16 10:09:52 -03:00
parent 6455feb4fa
commit 94d00ba203
3 changed files with 9 additions and 7 deletions

View File

@@ -49,6 +49,7 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool | No
'sk': f'MONTH#{report_sk}',
'status': 'PENDING',
'target_month': target_month,
'created_at': now_,
},
cond_expr='attribute_not_exists(sk)',
exc_cls=ReportingConflictError,
@@ -59,6 +60,7 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool | No
'sk': f'MONTH#{report_sk}#SCHEDULE#SEND_REPORT_EMAIL',
'target_month': target_month,
'ttl': ttl(start_dt=report_month),
'created_at': now_,
},
)
except Exception as exc: