Skip to content

Commit 56876ec

Browse files
Merge pull request #47 from PythonFloripa/fix/maximum_concurrency_builder_queue_one
Fix/maximum concurrency builder queue one
2 parents 26f5f84 + 5948ac8 commit 56876ec

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

terraform/modules/05.lambda/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,9 @@ resource "aws_lambda_event_source_mapping" "builder_sqs_trigger" {
298298

299299
# Configurações do processamento em lote
300300
batch_size = 1 # Processa 1 mensagem por vez
301-
maximum_batching_window_in_seconds = 5 # Aguarda até 5 segundos para formar um lote
301+
maximum_batching_window_in_seconds = 10 # Aguarda até 10 segundos para formar um lote
302302
scaling_config {
303-
maximum_concurrency = 3
303+
maximum_concurrency = 1
304304
}
305305
# Configurações de retry e erro
306306
function_response_types = ["ReportBatchItemFailures"]

terraform/modules/05.lambda/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ variable "image_tag" {
6464
variable "lambda_timeout" {
6565
description = "Timeout da função Lambda em segundos"
6666
type = number
67-
default = 60
67+
default = 360
6868
}
6969

7070
variable "lambda_memory_size" {

0 commit comments

Comments
 (0)