From 4ae116f4091623f89df8a382694c301ffb712432 Mon Sep 17 00:00:00 2001 From: Johan Lundberg Date: Mon, 14 Apr 2014 13:35:21 +0200 Subject: Spread the full import to fewer months at a time. --- meetingtools/apps/content/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meetingtools/apps/content') diff --git a/meetingtools/apps/content/tasks.py b/meetingtools/apps/content/tasks.py index eef0e58..ad426ef 100644 --- a/meetingtools/apps/content/tasks.py +++ b/meetingtools/apps/content/tasks.py @@ -93,7 +93,7 @@ def get_domain_content(domain_tag): #@periodic_task(run_every=crontab(hour="1", minute="0", day_of_week="*")) def timed_full_import(): years = [2009, 2010, 2011, 2012, 2013, 2014] - months = [(1, 7), (8, 12)] # Ugly hack as June does not have 31 days + months = [(1, 3), (4, 7), (8, 10), (9, 12)] for acc in ACCluster.objects.all(): nr = 0 for year in years: -- cgit v1.1