Skip to content

Commit fd438fd

Browse files
committed
chore: enable creation of new alert when a datasource is down
1 parent 1fc3e0d commit fd438fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/src/main/java/com/park/utmstack/service/UtmDataInputStatusService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ private Map<String, Boolean> extractSourcesWithUpDownStatus(List<UtmDataInputSta
261261
* if any of them are down then create a new alert. This method is a schedule with a delay
262262
* of 24 hour
263263
*/
264-
/*@Scheduled(fixedDelay = 24, timeUnit = TimeUnit.HOURS)
264+
@Scheduled(fixedDelay = 24, timeUnit = TimeUnit.HOURS)
265265
public void checkDatasourceDown() {
266266
final String ctx = CLASSNAME + ".checkDatasourceDown";
267267
try {
@@ -279,7 +279,7 @@ public void checkDatasourceDown() {
279279
log.error(msg);
280280
applicationEventService.createEvent(msg, ApplicationEventType.ERROR);
281281
}
282-
}*/
282+
}
283283

284284
/**
285285
* Create the alert object for datasource down

0 commit comments

Comments
 (0)