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:
@@ -4,7 +4,11 @@
|
|||||||
"Bash(java -version)",
|
"Bash(java -version)",
|
||||||
"WebFetch(domain:github.com)",
|
"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)",
|
"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:*)"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,8 +64,8 @@
|
|||||||
<artifactId>spring-boot-starter-validation</artifactId>
|
<artifactId>spring-boot-starter-validation</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.liquibase</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>liquibase-core</artifactId>
|
<artifactId>spring-boot-starter-liquibase</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.h2database</groupId>
|
<groupId>com.h2database</groupId>
|
||||||
|
|||||||
@@ -19,7 +19,8 @@ public class UpdateScheduler {
|
|||||||
private final GitService gitService;
|
private final GitService gitService;
|
||||||
private final JavadocService javadocService;
|
private final JavadocService javadocService;
|
||||||
|
|
||||||
@Scheduled(fixedRateString = "${jvs.update-interval:PT1H}")
|
|
||||||
|
@Scheduled(cron = "${jvs.cron}")
|
||||||
public void updateAll() {
|
public void updateAll() {
|
||||||
log.info("Starting scheduled update of repositories...");
|
log.info("Starting scheduled update of repositories...");
|
||||||
List<GitRepository> repos = repository.findAll();
|
List<GitRepository> repos = repository.findAll();
|
||||||
|
|||||||
@@ -8,10 +8,8 @@ spring:
|
|||||||
database-platform: org.hibernate.dialect.H2Dialect
|
database-platform: org.hibernate.dialect.H2Dialect
|
||||||
hibernate:
|
hibernate:
|
||||||
ddl-auto: none
|
ddl-auto: none
|
||||||
liquibase:
|
|
||||||
change-log: classpath:db/changelog/db.changelog-master.yaml
|
|
||||||
|
|
||||||
jvs:
|
jvs:
|
||||||
config-path: ./jvs.yml
|
config-path: ./jvs.yml
|
||||||
base-dir: ./javadoc-storage
|
base-dir: ./javadoc-storage
|
||||||
update-interval: PT1H
|
cron: 0 0/15 * * * ?
|
||||||
|
|||||||
Reference in New Issue
Block a user