Skip to content

Commit d8425fe

Browse files
committed
CCM-13476: set queue max receive count to 1
1 parent 0be793a commit d8425fe

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

infrastructure/terraform/components/dl/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ No requirements.
5353
| <a name="module_sqs_event_publisher_errors"></a> [sqs\_event\_publisher\_errors](#module\_sqs\_event\_publisher\_errors) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-sqs.zip | n/a |
5454
| <a name="module_sqs_pdm_poll"></a> [sqs\_pdm\_poll](#module\_sqs\_pdm\_poll) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-sqs.zip | n/a |
5555
| <a name="module_sqs_pdm_uploader"></a> [sqs\_pdm\_uploader](#module\_sqs\_pdm\_uploader) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-sqs.zip | n/a |
56-
| <a name="module_sqs_print_status_handler"></a> [sqs\_print\_status\_handler](#module\_sqs\_print\_status\_handler) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-sqs.zip | n/a |
56+
| <a name="module_sqs_print_status_handler"></a> [sqs\_print\_status\_handler](#module\_sqs\_print\_status\_handler) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.30/terraform-sqs.zip | n/a |
5757
| <a name="module_sqs_ttl"></a> [sqs\_ttl](#module\_sqs\_ttl) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-sqs.zip | n/a |
5858
| <a name="module_sqs_ttl_handle_expiry_errors"></a> [sqs\_ttl\_handle\_expiry\_errors](#module\_sqs\_ttl\_handle\_expiry\_errors) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-sqs.zip | n/a |
5959
| <a name="module_ttl_create"></a> [ttl\_create](#module\_ttl\_create) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip | n/a |

infrastructure/terraform/components/dl/module_sqs_print_status_handler.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module "sqs_print_status_handler" {
2-
source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-sqs.zip"
2+
source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.30/terraform-sqs.zip"
33

44
aws_account_id = var.aws_account_id
55
component = local.component
@@ -11,6 +11,7 @@ module "sqs_print_status_handler" {
1111
visibility_timeout_seconds = 60
1212
delay_seconds = 5
1313
create_dlq = true
14+
max_receive_count = 1
1415
sqs_policy_overload = data.aws_iam_policy_document.sqs_print_status_handler.json
1516
}
1617

tests/playwright/digital-letters-component-tests/print-status-handler.component.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ test.describe('Print status handler', () => {
9696
}
9797

9898
test('should send invalid event to print status handler dlq', async () => {
99-
// Sadly it takes longer than expected to go through the 3 retries before it's sent to the DLQ.
100-
test.setTimeout(550_000);
99+
test.setTimeout(250_000);
101100

102101
const messageReference = uuidv4();
103102

@@ -135,7 +134,7 @@ test.describe('Print status handler', () => {
135134
await expectMessageContainingString(
136135
PRINT_STATUS_HANDLER_DLQ_NAME,
137136
messageReference,
138-
420,
137+
120,
139138
);
140139
});
141140
});

0 commit comments

Comments
 (0)