diff --git a/src/__tests__/__snapshots__/construct-hub.test.ts.snap b/src/__tests__/__snapshots__/construct-hub.test.ts.snap index 624d4e5cc..e27f18236 100644 --- a/src/__tests__/__snapshots__/construct-hub.test.ts.snap +++ b/src/__tests__/__snapshots__/construct-hub.test.ts.snap @@ -6227,7 +6227,7 @@ Warning: messages that resulted in a failed exectuion will NOT be in the DLQ!", "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, - "S3Key": "6ea9d0f75d11fd237e6cc8ca5942cd376627b88a0c879dd1a059229b4c16c99e.zip", + "S3Key": "f35e9d47e70f3152134a4206a20e5c973ac990109faf4d9630a846377a8f13a9.zip", }, "Description": "[ConstructHub/Redrive] Manually redrives all messages from the backend dead letter queue", "Environment": { @@ -20505,7 +20505,7 @@ Warning: messages that resulted in a failed exectuion will NOT be in the DLQ!", "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, - "S3Key": "6ea9d0f75d11fd237e6cc8ca5942cd376627b88a0c879dd1a059229b4c16c99e.zip", + "S3Key": "f35e9d47e70f3152134a4206a20e5c973ac990109faf4d9630a846377a8f13a9.zip", }, "Description": "[ConstructHub/Redrive] Manually redrives all messages from the backend dead letter queue", "Environment": { @@ -34493,7 +34493,7 @@ Warning: messages that resulted in a failed exectuion will NOT be in the DLQ!", "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, - "S3Key": "6ea9d0f75d11fd237e6cc8ca5942cd376627b88a0c879dd1a059229b4c16c99e.zip", + "S3Key": "f35e9d47e70f3152134a4206a20e5c973ac990109faf4d9630a846377a8f13a9.zip", }, "Description": "[ConstructHub/Redrive] Manually redrives all messages from the backend dead letter queue", "Environment": { @@ -48565,7 +48565,7 @@ Warning: messages that resulted in a failed exectuion will NOT be in the DLQ!", "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, - "S3Key": "6ea9d0f75d11fd237e6cc8ca5942cd376627b88a0c879dd1a059229b4c16c99e.zip", + "S3Key": "f35e9d47e70f3152134a4206a20e5c973ac990109faf4d9630a846377a8f13a9.zip", }, "Description": "[ConstructHub/Redrive] Manually redrives all messages from the backend dead letter queue", "Environment": { @@ -62552,7 +62552,7 @@ Warning: messages that resulted in a failed exectuion will NOT be in the DLQ!", "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, - "S3Key": "6ea9d0f75d11fd237e6cc8ca5942cd376627b88a0c879dd1a059229b4c16c99e.zip", + "S3Key": "f35e9d47e70f3152134a4206a20e5c973ac990109faf4d9630a846377a8f13a9.zip", }, "Description": "[ConstructHub/Redrive] Manually redrives all messages from the backend dead letter queue", "Environment": { diff --git a/src/__tests__/devapp/__snapshots__/snapshot.test.ts.snap b/src/__tests__/devapp/__snapshots__/snapshot.test.ts.snap index bf55cb6b3..6fd98f419 100644 --- a/src/__tests__/devapp/__snapshots__/snapshot.test.ts.snap +++ b/src/__tests__/devapp/__snapshots__/snapshot.test.ts.snap @@ -6443,7 +6443,7 @@ Warning: messages that resulted in a failed exectuion will NOT be in the DLQ!", "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, - "S3Key": "6ea9d0f75d11fd237e6cc8ca5942cd376627b88a0c879dd1a059229b4c16c99e.zip", + "S3Key": "f35e9d47e70f3152134a4206a20e5c973ac990109faf4d9630a846377a8f13a9.zip", }, "Description": "[ConstructHub/Redrive] Manually redrives all messages from the backend dead letter queue", "Environment": { diff --git a/src/backend/orchestration/redrive-state-machine.lambda.ts b/src/backend/orchestration/redrive-state-machine.lambda.ts index 4a86e9b2c..6d364e619 100644 --- a/src/backend/orchestration/redrive-state-machine.lambda.ts +++ b/src/backend/orchestration/redrive-state-machine.lambda.ts @@ -55,7 +55,8 @@ async function* messagesToRedrive(queueUrl: string) { result = await SQS_CLIENT.send( new ReceiveMessageCommand({ QueueUrl: queueUrl, - VisibilityTimeout: 900, // 15 minutes + VisibilityTimeout: 60, + WaitTimeSeconds: 3, // sometimes larger messages need a bit before being received }) ); if (result.Messages) {