mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
added a task scheduler for recurring tasks
This commit is contained in:
parent
5871ce34a0
commit
9d22d9c9b1
15 changed files with 243 additions and 192 deletions
|
|
@ -71,6 +71,8 @@ INSTALLED_APPS = [
|
|||
"rest_framework",
|
||||
"django_filters",
|
||||
|
||||
"django_q",
|
||||
|
||||
]
|
||||
|
||||
REST_FRAMEWORK = {
|
||||
|
|
@ -242,6 +244,16 @@ LOGGING = {
|
|||
},
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
# Task queue #
|
||||
###############################################################################
|
||||
|
||||
Q_CLUSTER = {
|
||||
'name': 'paperless',
|
||||
'catch_up': False,
|
||||
'redis': os.getenv("PAPERLESS_REDIS", "redis://localhost:6379")
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
# Paperless Specific Settings #
|
||||
###############################################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue