diff --git a/pom.xml b/pom.xml index 662f874..a802a0f 100644 --- a/pom.xml +++ b/pom.xml @@ -4,20 +4,25 @@ 4.0.0 ch.unisg.library.systemlibrarian alma-job-runner - 1.0.2 + 1.0.3 ${packaging} + - io.micronaut + io.micronaut.platform micronaut-parent - 3.8.7 + 4.2.2 docker 17 17 - 3.8.7 + 4.2.2 netty 6.8.0.202311291450-r 0.2.15 @@ -54,7 +59,7 @@ compile - io.micronaut + io.micronaut.validation micronaut-validation compile @@ -77,6 +82,11 @@ io.micronaut.views micronaut-views-handlebars + + org.yaml + snakeyaml + runtime + jakarta.annotation jakarta.annotation-api @@ -156,7 +166,7 @@ - io.micronaut.build + io.micronaut.maven micronaut-maven-plugin diff --git a/src/main/java/ch/unisg/library/systemlibrarian/health/HealthController.java b/src/main/java/ch/unisg/library/systemlibrarian/health/HealthController.java index 8d58104..427a21d 100644 --- a/src/main/java/ch/unisg/library/systemlibrarian/health/HealthController.java +++ b/src/main/java/ch/unisg/library/systemlibrarian/health/HealthController.java @@ -7,6 +7,8 @@ import io.micronaut.http.MediaType; import io.micronaut.http.annotation.Controller; import io.micronaut.http.annotation.Get; +import io.micronaut.scheduling.TaskExecutors; +import io.micronaut.scheduling.annotation.ExecuteOn; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -15,6 +17,7 @@ import java.util.List; @Controller +@ExecuteOn(TaskExecutors.BLOCKING) public class HealthController { private static final Logger LOG = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); private final AlmaApiHttpClient almaApiHttpClient; diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml index fe4febd..398190a 100644 --- a/src/main/resources/logback.xml +++ b/src/main/resources/logback.xml @@ -1,7 +1,6 @@ - true