From aa33fc379e512e88354a000972999a835266ed68 Mon Sep 17 00:00:00 2001 From: Johan Lundberg Date: Tue, 1 Apr 2014 17:37:00 +0200 Subject: Full import helper tasks added but not activated. --- meetingtools/apps/room/tasks.py | 6 ++++++ meetingtools/apps/stats/tasks.py | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'meetingtools') diff --git a/meetingtools/apps/room/tasks.py b/meetingtools/apps/room/tasks.py index 5f70b01..0b90b60 100644 --- a/meetingtools/apps/room/tasks.py +++ b/meetingtools/apps/room/tasks.py @@ -220,6 +220,12 @@ def import_all_rooms(): import_acc(acc,since=3700) +#@periodic_task(run_every=crontab(hour="3", minute="0", day_of_week="*")) +def timed_full_import(): + for acc in ACCluster.objects.all(): + import_acc(acc) + + def start_user_counts_poll(room,niter): poll_user_counts.apply_async(args=[room],kwargs={'niter': niter}) diff --git a/meetingtools/apps/stats/tasks.py b/meetingtools/apps/stats/tasks.py index 1d379e2..49e9abd 100644 --- a/meetingtools/apps/stats/tasks.py +++ b/meetingtools/apps/stats/tasks.py @@ -50,3 +50,9 @@ def import_sessions(since,room_last_visited=False): @periodic_task(run_every=crontab(hour="*", minute="*/5", day_of_week="*")) def _hourly_import(): import_sessions(600,True) + + +#@periodic_task(run_every=crontab(hour="5", minute="0", day_of_week="*")) +def timed_full_import(): + for acc in ACCluster.objects.all(): + import_acc_sessions(acc, room_last_visited=True) \ No newline at end of file -- cgit v1.1