added a task scheduler for recurring tasks

This commit is contained in:
Jonas Winkler
2020-11-09 20:29:02 +01:00
parent 04f5438ce3
commit d3e7c8ff4e
15 changed files with 243 additions and 192 deletions

View File

@@ -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 #
###############################################################################