import os import sys from huey.contrib.sql_huey import SqlHuey from huey.storage import SqliteStorage tisbackup_root_dir = os.path.abspath(os.path.join(os.path.dirname(__file__))) tasks_db = os.path.join(tisbackup_root_dir, "tasks.sqlite") huey = SqlHuey(name="tisbackups", filename=tasks_db, always_eager=False, storage_class=SqliteStorage)