Unblock redis locks

This commit is contained in:
Kamil
2024-11-26 15:09:29 +00:00
parent 0fe45483dc
commit 16e1a8a58d
2 changed files with 26 additions and 3 deletions

View File

@@ -13,6 +13,14 @@ TASK_STATUS = {
'check_for_playlist_updates': None,
'update_jellyfin_id_for_downloaded_tracks' : None
}
LOCK_KEYS = [
'update_all_playlists_track_status_lock',
'download_missing_tracks_lock',
'check_for_playlist_updates_lock',
'update_jellyfin_id_for_downloaded_tracks_lock' ,
'full_update_jellyfin_ids'
]
def manage_task(task_name):
task_id = TASK_STATUS.get(task_name)