Create an scan Library celery task

This commit is contained in:
petitminion 2022-05-15 10:56:39 +00:00 committed by JuniorJPDJ
commit 50f002fa73
3 changed files with 23 additions and 0 deletions

View file

@ -836,6 +836,11 @@ CELERY_BEAT_SCHEDULE = {
),
"options": {"expires": 60 * 60},
},
"music.library.schedule_remote_scan": {
"task": "music.library.schedule_scan",
"schedule": crontab(day_of_week="1", minute="0", hour="2"),
"options": {"expires": 60 * 60 * 24},
},
}
if env.bool("ADD_ALBUM_TAGS_FROM_TRACKS", default=True):