diff --git a/PROJECT.org b/PROJECT.org index cb80dc5..05874df 100644 --- a/PROJECT.org +++ b/PROJECT.org @@ -88,7 +88,7 @@ fetching and simple saving. *** Metadata sources **** Scraper -* Backlog [0/21] :vrobbler:project:personal: +* Backlog [2/25] :vrobbler:project:personal: ** TODO [#C] Create small utility to clean up tracks scrobbled with wonky playback times :bug:music:scrobbles: :PROPERTIES: :ID: 702462cf-d54b-48c6-8a7c-78b8de751deb @@ -604,7 +604,24 @@ independent of the email flow it was originally creatdd for ** TODO [#B] Is there way to create unique slugs for media instances :media_types: -** TODO [#A] Check for existing book scrobble and update page count :books:scrobbling: +** TODO [#C] =alt_names= feature for artists (commented out / dead code) :music:dead-code: +:PROPERTIES: +:ID: e22060a2-5f7a-4f33-9056-309ecd27159c +:END: + +*** Description + +File: ~vrobbler/apps/music/models.py~ (line 236) + +An entire block of code for tracking alternate artist names is commented +out. The TODO questions whether it even works. Review: either implement +properly or remove the dead code. + +** DONE [#A] Put chart rebuilds in a lower priority task queue :charts:tasks: +:PROPERTIES: +:ID: 43c90de0-fc1c-1139-dac7-9b7c82006b2e +:END: +** DONE [#A] Check for existing book scrobble and update page count :books:scrobbling: :PROPERTIES: :ID: 1a0609bc-6b16-4da4-96c1-59588229e4b4 :END: diff --git a/Procfile b/Procfile index d204970..ce899cf 100644 --- a/Procfile +++ b/Procfile @@ -1,2 +1,2 @@ web: python manage.py runserver 0.0.0.0:8014 -worker: celery -A vrobbler worker -l DEBUG +worker: celery -A vrobbler worker -Q default,charts -l DEBUG diff --git a/vrobbler/settings.py b/vrobbler/settings.py index 17b247d..aad6fc8 100644 --- a/vrobbler/settings.py +++ b/vrobbler/settings.py @@ -122,6 +122,15 @@ CELERY_ACCEPT_CONTENT = ["json"] CELERY_RESULT_EXTENDED = True CELERY_BROKER_CONNECTION_RETRY_ON_STARTUP = True +CELERY_TASK_CREATE_MISSING_QUEUES = True +CELERY_TASK_ROUTES = { + "scrobbles.tasks.update_charts_for_timestamp": {"queue": "charts"}, + "scrobbles.tasks.create_yesterdays_charts": {"queue": "charts"}, + "scrobbles.tasks.rebuild_weekly_charts": {"queue": "charts"}, + "scrobbles.tasks.rebuild_monthly_charts": {"queue": "charts"}, + "scrobbles.tasks.rebuild_yearly_charts": {"queue": "charts"}, +} + CELERY_BEAT_SCHEDULE = { "build-yesterdays-charts": { "task": "scrobbles.tasks.create_yesterdays_charts",