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