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
@@ -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 * * * ?