feat(notifications): add redis-backed sse notification streaming

This commit is contained in:
2026-04-25 11:27:46 +03:30
parent e7de587f59
commit 0ca3255270
14 changed files with 1146 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
from celery import shared_task
from django.conf import settings
from apps.notifications.services import RedisNotificationStore
@shared_task(name="notifications.cleanup_redis_notifications")
def cleanup_redis_notifications():
return RedisNotificationStore.cleanup_expired(
retention_days=settings.NOTIFICATION_RETENTION_DAYS
)