use celery for asynchronous tasks, rename session_uuid -> file_uuid

This commit is contained in:
Joel Mathew Thomas
2025-02-25 19:30:58 +05:30
parent 0d35e4e071
commit 825da48712
6 changed files with 27 additions and 38 deletions
+4
View File
@@ -123,6 +123,10 @@ STATIC_URL = 'static/'
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
# COnfigure Redis as message broker
CELERY_BROKER_URL = 'redis://localhost:6379/0'
CELERY_ACCEPT_CONTENT = ['json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_BROKER_CONNECTION_RETRY_ON_STARTUP = True