12 lines
345 B
Python
12 lines
345 B
Python
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
|
|
)
|