Implement data integration tasks with Celery, including periodic fetching and manual refresh of chat data; add utility functions for data processing and transcript handling; create views and URLs for manual data refresh; establish Redis and Celery configuration; enhance error handling and logging; introduce scripts for data cleanup and fixing dashboard data; update documentation for Redis and Celery setup and troubleshooting.

This commit is contained in:
2025-05-18 13:33:11 +00:00
parent e8f2d2adc2
commit 8bbbb109bd
63 changed files with 4601 additions and 164 deletions

16
.env.sample Normal file
View File

@ -0,0 +1,16 @@
# .env.sample - rename to .env and update with actual credentials
# Django settings
DJANGO_SECRET_KEY=your-secure-secret-key
DJANGO_DEBUG=True
# External API credentials
EXTERNAL_API_USERNAME=your-api-username
EXTERNAL_API_PASSWORD=your-api-password
# Redis settings for Celery
REDIS_URL=redis://localhost:6379/0
CELERY_BROKER_URL=redis://localhost:6379/0
CELERY_RESULT_BACKEND=redis://localhost:6379/0
# Celery Task Schedule (in seconds)
CHAT_DATA_FETCH_INTERVAL=3600