Skip to content

Commit

Permalink
Update engines_stack.py
Browse files Browse the repository at this point in the history
  • Loading branch information
brainboost committed Dec 10, 2023
1 parent eaef11b commit 9c7248b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stacks/engines_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
role=self.lambda_role,
dead_letter_queue_enabled=True,
dead_letter_queue=dlq,
log_retention=aws_logs.RetentionDays.TWO_WEEKS,
)
dlq.grant_send_messages(api_callback)
error_alarm = aws_cloudwatch.Alarm(
Expand Down Expand Up @@ -278,8 +279,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
exclude=["cdk.out"],
cmd=[f"{ASSET_PATH}.ideogram_result.sqs_handler"],
),
# timeout=Duration.minutes(1),
# memory_size=256,
log_retention=aws_logs.RetentionDays.TWO_WEEKS,
role=self.lambda_role,
)
resultHandler.add_event_source(
Expand Down

0 comments on commit 9c7248b

Please sign in to comment.