From 8d64a966ff19f83d770624443493312b09ca98ee Mon Sep 17 00:00:00 2001 From: tcely Date: Wed, 28 May 2025 22:15:12 -0400 Subject: [PATCH] Add more configuration --- tubesync/common/huey.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tubesync/common/huey.py b/tubesync/common/huey.py index 3d145ca0..97bb6ee2 100644 --- a/tubesync/common/huey.py +++ b/tubesync/common/huey.py @@ -10,10 +10,21 @@ def sqlite_tasks(key, /, prefix=None): return dict( huey_class='huey.SqliteHuey', name=name, + immediate=False, + results=True, + store_none=False, + utc=True, + compression=True, connection=dict( filename=f'/config/tasks/{name}.db', fsync=True, strict_fifo=True, ), + consumer=dict( + workers=1, + worker_type='process', + max_delay=20.0, + scheduler_interval=10, + ), )