mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-24 19:38:24 +00:00
Add cleanup jobs task
This commit is contained in:
@ -81,15 +81,39 @@ docspell.joex {
|
||||
# invites, that can be configured here.
|
||||
house-keeping {
|
||||
|
||||
# When the house keeping task executes. Default is every 4 hours.
|
||||
schedule = "*-*-* 0/4:00:00"
|
||||
# When the house keeping tasks execute. Default is to run every
|
||||
# week.
|
||||
schedule = "Sun *-*-* 00:00:00"
|
||||
|
||||
# This task removes invitation keys that have been created but not
|
||||
# used. The timespan here must be greater than the `invite-time'
|
||||
# setting in the rest server config file.
|
||||
cleanup-invites = {
|
||||
|
||||
# Whether this task is enabled.
|
||||
enabled = true
|
||||
|
||||
# The minimum age of invites to be deleted.
|
||||
older-than = "30 days"
|
||||
}
|
||||
|
||||
# Jobs store their log output in the database. Normally this data
|
||||
# is only interesting for some period of time. The processing logs
|
||||
# of old files can be removed eventually.
|
||||
cleanup-jobs = {
|
||||
|
||||
# Whether this task is enabled.
|
||||
enabled = true
|
||||
|
||||
# The minimum age of jobs to delete. It is matched against the
|
||||
# `finished' timestamp.
|
||||
older-than = "30 days"
|
||||
|
||||
# This defines how many jobs are deleted in one transaction.
|
||||
# Since the data to delete may get large, it can be configured
|
||||
# whether more or less memory should be used.
|
||||
delete-batch = "100"
|
||||
}
|
||||
}
|
||||
|
||||
# Configuration of text extraction
|
||||
|
Reference in New Issue
Block a user