<Why Spring Boot app dies regularly after several ...
# stackoverflow
u
Why Spring Boot app dies regularly after several days of uptime I have a Kotlin Spring Boot app and scheduled job inside: @Scheduled(cron = "\${cronjob.activate.cron}", zone = "\${cronjob.activate.zone}") fun activate() { log.info("[Activation Cron Job] Triggered") while (!Thread.interrupted()) { val metadata = initMetadataWithActivationMetric() activationJobService.findRowsToActivate() //finds rows in postgresql depending on column that contains status value = IN_PROGRESS .takeUnless(List::isEmpty) ?.run...