This commit is contained in:
Kenneth Kehl
2024-12-13 17:30:00 -08:00
parent b784d33173
commit b28b547762
3 changed files with 51 additions and 54 deletions

View File

@@ -240,6 +240,7 @@ def check_for_services_with_high_failure_rates_or_sending_to_tv_numbers():
@notify_celery.task(name="process-delivery-receipts")
def process_delivery_receipts():
cloudwatch = AwsCloudwatchClient()
cloudwatch.init_app(current_app)
start_time = utc_now() - timedelta(minutes=10)
end_time = utc_now()
receipts = cloudwatch.check_delivery_receipts(start_time, end_time)