summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2018-02-02 13:37:23 -0800
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2018-02-02 13:40:30 -0800
commit766a55db2b7b23f671a88123363490f8ebaa41ae (patch)
tree238e0de5e94f2a8c6cd1e6e0e8b9f0e29585d148
parent1fd014d20886727b3c8eb1861afb58b91c2dfa74 (diff)
Remove the Booking Notification Cleanup Task
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>
-rw-r--r--dashboard/src/dashboard/tasks.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/dashboard/src/dashboard/tasks.py b/dashboard/src/dashboard/tasks.py
index c5ef505..aab3345 100644
--- a/dashboard/src/dashboard/tasks.py
+++ b/dashboard/src/dashboard/tasks.py
@@ -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