Switch to cron-based scheduling and update Liquibase configuration
Build and Push Docker Image / build-and-push (push) Successful in 1m0s

This commit is contained in:
2026-07-03 16:59:12 +02:00
parent b05fa52fcd
commit fcfc732b31
4 changed files with 10 additions and 7 deletions
+5 -1
View File
@@ -4,7 +4,11 @@
"Bash(java -version)",
"WebFetch(domain:github.com)",
"Bash(find /Users/thilo/development/java/JavadocViewerService -not -path */target/* -not -path */.mvn/* -not -path */.maven/* -not -path */.git/* -type f -o -type d)",
"WebFetch(domain:docs.gitea.com)"
"WebFetch(domain:docs.gitea.com)",
"Bash(rm -f /Users/thilo/development/java/JavadocViewerService/database/jvsdb.mv.db /Users/thilo/development/java/JavadocViewerService/database/jvsdb.trace.db)",
"Bash(mvn spring-boot:run)",
"Bash(mvn spring-boot:run -Dspring-boot.run.jvmArguments=\"-Ddebug=true\")",
"Bash(jar tf:*)"
]
}
}
+2 -2
View File
@@ -64,8 +64,8 @@
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-liquibase</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
@@ -19,7 +19,8 @@ public class UpdateScheduler {
private final GitService gitService;
private final JavadocService javadocService;
@Scheduled(fixedRateString = "${jvs.update-interval:PT1H}")
@Scheduled(cron = "${jvs.cron}")
public void updateAll() {
log.info("Starting scheduled update of repositories...");
List<GitRepository> repos = repository.findAll();
+1 -3
View File
@@ -8,10 +8,8 @@ spring:
database-platform: org.hibernate.dialect.H2Dialect
hibernate:
ddl-auto: none
liquibase:
change-log: classpath:db/changelog/db.changelog-master.yaml
jvs:
config-path: ./jvs.yml
base-dir: ./javadoc-storage
update-interval: PT1H
cron: 0 0/15 * * * ?