diff --git a/pom.xml b/pom.xml
index 96f697b7..890cc73f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -235,6 +235,16 @@
rxjava
1.3.8
+
+ net.javacrumbs.shedlock
+ shedlock-spring
+ 4.25.0
+
+
+ net.javacrumbs.shedlock
+ shedlock-provider-jdbc-template
+ 4.25.0
+
diff --git a/src/main/java/app/coronawarn/verification/config/VerificationApplicationConfig.java b/src/main/java/app/coronawarn/verification/config/VerificationApplicationConfig.java
index a76caede..cafb6485 100644
--- a/src/main/java/app/coronawarn/verification/config/VerificationApplicationConfig.java
+++ b/src/main/java/app/coronawarn/verification/config/VerificationApplicationConfig.java
@@ -136,6 +136,8 @@ public static class Entities {
public static class Cleanup {
private Integer days = 21;
+ private String cron = "0 1 * * * *";
+ private Integer locklimit = 60;
}
}
diff --git a/src/main/java/app/coronawarn/verification/repository/VerificationAppSessionRepository.java b/src/main/java/app/coronawarn/verification/repository/VerificationAppSessionRepository.java
index 2f66e40e..e24d38ae 100644
--- a/src/main/java/app/coronawarn/verification/repository/VerificationAppSessionRepository.java
+++ b/src/main/java/app/coronawarn/verification/repository/VerificationAppSessionRepository.java
@@ -25,6 +25,8 @@
import java.time.LocalDateTime;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.Modifying;
+import org.springframework.data.jpa.repository.Query;
/**
* This class represents the AppSession repository.
@@ -61,5 +63,7 @@ public interface VerificationAppSessionRepository extends JpaRepository