From 4841eebda496c5ef1a2fe180be9ef3f3bb32ad72 Mon Sep 17 00:00:00 2001 From: Charles-Gormley Date: Mon, 11 Nov 2024 20:38:59 -0500 Subject: [PATCH] changing visibility timeout default and eventbridge default. --- src/infra/cloudformation/eventbridge.yaml | 2 +- src/infra/cloudformation/sqs.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/infra/cloudformation/eventbridge.yaml b/src/infra/cloudformation/eventbridge.yaml index b986feb..57a7a58 100644 --- a/src/infra/cloudformation/eventbridge.yaml +++ b/src/infra/cloudformation/eventbridge.yaml @@ -29,7 +29,7 @@ Resources: Name: rss-feed-processor-schedule Description: Runs the RSS Feed Processor Lambda function every hour State: ENABLED - ScheduleExpression: rate(120 minutes) + ScheduleExpression: rate(240 minutes) FlexibleTimeWindow: Mode: FLEXIBLE MaximumWindowInMinutes: 1 diff --git a/src/infra/cloudformation/sqs.yaml b/src/infra/cloudformation/sqs.yaml index b7fe253..10b8145 100644 --- a/src/infra/cloudformation/sqs.yaml +++ b/src/infra/cloudformation/sqs.yaml @@ -11,7 +11,7 @@ Resources: Type: AWS::SQS::Queue Properties: QueueName: !Ref SQSQueueName - VisibilityTimeout: 300 # Should be set to the 3rd standard deviation of your lambda runtime distribution. + VisibilityTimeout: 900 # Should be set to the 3rd standard deviation of your lambda runtime distribution. ReceiveMessageWaitTimeSeconds: 20 RedrivePolicy: deadLetterTargetArn: !GetAtt RSSFeedDLQ.Arn