Remove the Booking Notification Cleanup Task
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Fri, 2 Feb 2018 21:37:23 +0000 (13:37 -0800)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Fri, 2 Feb 2018 21:40:30 +0000 (13:40 -0800)
These are created by the notification django-app, but that app is no
longer used or installed.

This change should also keep the worker container from continuously
restarting.

Change-Id: Ifbdf15e7011375f3818179048ec6be4a83a53917
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
src/dashboard/tasks.py

index c5ef505..aab3345 100644 (file)
@@ -14,11 +14,9 @@ from celery import shared_task
 from django.utils import timezone
 
 from jenkins.models import JenkinsStatistic
-from notification.models import BookingNotification
 
 
 @shared_task
 def database_cleanup():
     now = timezone.now()
     JenkinsStatistic.objects.filter(timestamp__lt=now - timedelta(weeks=4)).delete()
-    BookingNotification.objects.filter(submit_time__lt=now - timedelta(weeks=4)).delete()
\ No newline at end of file