From 6f53e8a5834d6199c5b45eba4020297f38e71b28 Mon Sep 17 00:00:00 2001 From: nutrina Date: Fri, 15 Mar 2024 10:05:40 +0200 Subject: [PATCH] fix[infra]: adding to alarms in scheduled tasks (#554) --- infra/lib/scorer/scheduledTasks.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/infra/lib/scorer/scheduledTasks.ts b/infra/lib/scorer/scheduledTasks.ts index f27384246..02470fd1d 100644 --- a/infra/lib/scorer/scheduledTasks.ts +++ b/infra/lib/scorer/scheduledTasks.ts @@ -217,6 +217,7 @@ export function createScheduledTask( new aws.cloudwatch.MetricAlarm("UnsuccessfulRuns-" + name, { alarmActions: [alertTopic.arn], + okActions: [alertTopic.arn], comparisonOperator: "GreaterThanOrEqualToThreshold", datapointsToAlarm: 1, evaluationPeriods: 1,