feat(tasks): Integrate django-tasks for task management and progress tracking

This commit is contained in:
Ross
2026-05-17 12:41:17 +01:00
parent 7ed0a8f378
commit e6a20bb851
5 changed files with 169 additions and 38 deletions
+12 -2
View File
@@ -86,8 +86,7 @@ INSTALLED_APPS = [
'django_jsonforms',
'django_svelte_jsoneditor',
'django_psutil_dash',
'django_tasks',
]
MIDDLEWARE = [
@@ -382,6 +381,17 @@ CIMAR_PASSWORD = ""
CELERY_BROKER_URL = "redis://redis:6379"
CELERY_RESULT_BACKEND = "redis://redis:6379"
# Django 6 task framework settings.
# Use DJANGO_TASK_BACKEND to select your backend implementation.
TASKS = {
"default": {
"BACKEND": os.environ.get(
"DJANGO_TASK_BACKEND",
"django_tasks.backends.immediate.ImmediateBackend",
),
}
}
try:
from .settings_local import *