feat(settings): Update task backend to use django-tasks-db and add QUEUES configuration
This commit is contained in:
+3
-1
@@ -87,6 +87,7 @@ INSTALLED_APPS = [
|
||||
'django_svelte_jsoneditor',
|
||||
'django_psutil_dash',
|
||||
'django_tasks',
|
||||
'django_tasks_db',
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
@@ -387,8 +388,9 @@ TASKS = {
|
||||
"default": {
|
||||
"BACKEND": os.environ.get(
|
||||
"DJANGO_TASK_BACKEND",
|
||||
"django_tasks.backends.immediate.ImmediateBackend",
|
||||
"django_tasks_db.DatabaseBackend",
|
||||
),
|
||||
"QUEUES": ["default"],
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user