[charts] Big revamp of the charts app
This commit is contained in:
@ -2,7 +2,7 @@ import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
from celery.schedules import crontab
|
||||
import dj_database_url
|
||||
from dotenv import load_dotenv
|
||||
|
||||
@ -116,6 +116,17 @@ CELERY_RESULT_BACKEND = "django-db"
|
||||
CELERY_TIMEZONE = os.getenv("VROBBLER_TIME_ZONE", "America/New_York")
|
||||
CELERY_TASK_TRACK_STARTED = True
|
||||
|
||||
CELERY_BEAT_SCHEDULE = {
|
||||
"build-yesterdays-charts": {
|
||||
"task": "scrobbles.tasks.create_yesterdays_charts",
|
||||
"schedule": crontab(hour=0, minute=5),
|
||||
},
|
||||
"build-missing-charts-weekly": {
|
||||
"task": "scrobbles.tasks.build_missing_charts_for_all_users",
|
||||
"schedule": crontab(hour=1, minute=0, day_of_week=0),
|
||||
},
|
||||
}
|
||||
|
||||
INSTALLED_APPS = [
|
||||
"django.contrib.admin",
|
||||
"django.contrib.auth",
|
||||
@ -137,6 +148,7 @@ INSTALLED_APPS = [
|
||||
"profiles",
|
||||
"scrobbles",
|
||||
"people",
|
||||
"charts",
|
||||
"videos",
|
||||
"music",
|
||||
"podcasts",
|
||||
|
||||
Reference in New Issue
Block a user