Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed code that sets up the schedule for SoundCloud syncing #558

Merged
merged 1 commit into from
Jul 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading