Switch to cron-based scheduling and update Liquibase configuration
Build and Push Docker Image / build-and-push (push) Successful in 1m0s
Build and Push Docker Image / build-and-push (push) Successful in 1m0s
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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 * * * ?
|
||||
|
||||
Reference in New Issue
Block a user