live stats dashboard

This commit is contained in:
dekzter 2025-03-17 12:42:48 -04:00
parent 8f3d175a90
commit 7a7cd0711d
19 changed files with 469 additions and 30 deletions

View file

@ -1,6 +1,7 @@
import os
from pathlib import Path
from datetime import timedelta
from celery.schedules import crontab
BASE_DIR = Path(__file__).resolve().parent.parent
@ -150,6 +151,13 @@ AUTH_USER_MODEL = 'accounts.User'
CELERY_BROKER_URL = os.environ.get('CELERY_BROKER_URL', 'redis://localhost:6379/0')
CELERY_RESULT_BACKEND = CELERY_BROKER_URL
CELERY_BEAT_SCHEDULE = {
'fetch-channel-statuses': {
'task': 'apps.proxy.tasks.fetch_channel_stats',
'schedule': 2.0,
},
}
MEDIA_ROOT = BASE_DIR / 'media'
MEDIA_URL = '/media/'