From fab32e6ec3166a33649b0fea803f6905e67c94a0 Mon Sep 17 00:00:00 2001 From: patchwork01 <110390516+patchwork01@users.noreply.github.com> Date: Sat, 2 Nov 2024 22:34:19 +0000 Subject: [PATCH] Set queue visibility timeout for snapshot creation --- .../java/sleeper/cdk/stack/TransactionLogSnapshotStack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/cdk/src/main/java/sleeper/cdk/stack/TransactionLogSnapshotStack.java b/java/cdk/src/main/java/sleeper/cdk/stack/TransactionLogSnapshotStack.java index 187555a5d3..966573d9df 100644 --- a/java/cdk/src/main/java/sleeper/cdk/stack/TransactionLogSnapshotStack.java +++ b/java/cdk/src/main/java/sleeper/cdk/stack/TransactionLogSnapshotStack.java @@ -123,7 +123,7 @@ private void createSnapshotCreationLambda(InstanceProperties instanceProperties, .queue(deadLetterQueue) .build()) .fifo(true) - .visibilityTimeout(Duration.seconds(70)) + .visibilityTimeout(Duration.seconds(instanceProperties.getInt(TRANSACTION_LOG_SNAPSHOT_CREATION_LAMBDA_TIMEOUT_IN_SECONDS))) .build(); instanceProperties.set(TRANSACTION_LOG_SNAPSHOT_CREATION_QUEUE_URL, queue.getQueueUrl()); instanceProperties.set(TRANSACTION_LOG_SNAPSHOT_CREATION_QUEUE_ARN, queue.getQueueArn());