Skip to content

Commit

Permalink
Merge pull request #558 from OpenUpSA/fix/stop-broken-soundcloud-syncing
Browse files Browse the repository at this point in the history
Removed code that sets up the schedule for SoundCloud syncing
  • Loading branch information
paulmwatson authored Jul 30, 2024
2 parents 86e3401 + a60df47 commit 5aae198
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions pmg/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 5aae198

Please sign in to comment.