From a60df47c76988ff9146f40ee8d56e68dbbe620c1 Mon Sep 17 00:00:00 2001 From: paulmwatson Date: Tue, 30 Jul 2024 16:16:54 +0200 Subject: [PATCH] Removed code that sets up the schedule for SoundCloud syncing --- pmg/tasks.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/pmg/tasks.py b/pmg/tasks.py index 77fd6929..f08bbda4 100644 --- a/pmg/tasks.py +++ b/pmg/tasks.py @@ -17,14 +17,6 @@ def send_saved_search_alerts(): SavedSearch.send_all_alerts() -def sync_soundcloud(): - from pmg import app - from pmg.models.soundcloud_track import SoundcloudTrack - - with app.app_context(): - SoundcloudTrack.sync() - - def schedule(scheduler): jobs = [ # Schedule background task for sending saved search alerts every @@ -37,14 +29,6 @@ def schedule(scheduler): coalesce=True, hour=3, ), - scheduler.add_job( - sync_soundcloud, - "cron", - id="sync-soundcloud", - replace_existing=True, - coalesce=True, - hour="*/" + current_app.config["SOUNDCLOUD_PERIOD_HOURS"], - ), ] for job in jobs: log.info("Scheduled task: %s" % job)