diff --git a/tubesync/tubesync/settings.py b/tubesync/tubesync/settings.py index ea2f668b..0eb4ad58 100644 --- a/tubesync/tubesync/settings.py +++ b/tubesync/tubesync/settings.py @@ -58,6 +58,11 @@ DJANGO_HUEY = { 'network': sqlite_tasks('network'), }, } +for django_huey_queue in DJANGO_HUEY['queues'].items(): + connection = django_huey_queue.get('connection') + if connection: + filepath = Path('/.' + connection.get('filename') or '').resolve(strict=False) + filepath.parent.mkdir(exist_ok=True, parents=True) TEMPLATES = [