From 69b694b5dfee74b0ff34dd4b5f17f0d4ccc66c0b Mon Sep 17 00:00:00 2001 From: Alfredos-Panagiotis Damkalis Date: Sat, 21 Dec 2019 18:22:42 +0200 Subject: [PATCH] Remove periodic run of sync_to_db task Signed-off-by: Alfredos-Panagiotis Damkalis --- network/celery.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/network/celery.py b/network/celery.py index b600e14..7f66a37 100644 --- a/network/celery.py +++ b/network/celery.py @@ -65,13 +65,6 @@ def notify_for_stations_without_results(): periodic_task() -@APP.task -def sync_to_db(): - """Wrapper task for 'sync_to_db' shared task""" - from network.base.tasks import sync_to_db as periodic_task - periodic_task() - - @APP.on_after_finalize.connect def setup_periodic_tasks(sender, **kwargs): # pylint: disable=W0613 """Initializes celery tasks that need to run on a scheduled basis""" @@ -90,5 +83,3 @@ def setup_periodic_tasks(sender, **kwargs): # pylint: disable=W0613 notify_for_stations_without_results.s(), name='notify_for_stations_without_results' ) - - sender.add_periodic_task(RUN_TWICE_HOURLY, sync_to_db.s(), name='sync-to-db')