feat(tasks): background tasks persistency

tasks are persisted on disk and will survive a restart
This commit is contained in:
Gauthier Roebroeck 2020-04-24 16:43:59 +08:00
parent 3e081f2885
commit 1a31c89712
3 changed files with 9 additions and 1 deletions

1
.gitignore vendored
View file

@ -39,3 +39,4 @@ nbdist/
### Komga
/komga/src/main/resources/public/
/komga/artemis/

View file

@ -5,7 +5,7 @@ komga:
validity: 2592000 # 1 month
# libraries-scan-cron: "*/5 * * * * ?" #every 5 seconds
libraries-scan-cron: "-" #disable
libraries-scan-startup: true
# libraries-scan-startup: true
spring:
datasource:
url: jdbc:h2:mem:testdb
@ -15,6 +15,9 @@ spring:
generate_statistics: true
session.events.log: false
format_sql: true
artemis:
embedded:
data-directory: ./artemis
logging:
file:
max-history: 1

View file

@ -43,6 +43,10 @@ spring:
prefix: classpath:/public/
mvc:
throw-exception-if-no-handler-found: true
artemis:
embedded:
persistent: true
data-directory: ~/.komga/artemis
server:
servlet.session.timeout: 7d