From 2228ce0495d6d1266a680a1119cf891ad2ae02f9 Mon Sep 17 00:00:00 2001 From: lardbit Date: Mon, 18 Nov 2024 08:35:55 -0600 Subject: [PATCH] only allow a single "import library" task to run since we're using sqlit and it can't handle that much concurrency (tables get locked) --- src/nefarious/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nefarious/tasks.py b/src/nefarious/tasks.py index 3adcff7..746bc81 100644 --- a/src/nefarious/tasks.py +++ b/src/nefarious/tasks.py @@ -431,7 +431,7 @@ def auto_watch_new_seasons_task(): watch_show.save() -@app.task(base=QueueOnce) +@app.task(base=QueueOnce, once={'keys': []}) # queue once regardless of args def import_library_task(media_type: str, user_id: int, sub_path: str = None): user = get_object_or_404(User, pk=user_id) nefarious_settings = NefariousSettings.get()