Fix bugs with huey

This commit is contained in:
ssamson-tis
2015-07-08 16:02:14 +02:00
parent 4c188d8f94
commit 9a561e66bb
4 changed files with 92 additions and 50 deletions
+10
View File
@@ -0,0 +1,10 @@
import os,sys
from huey.backends.sqlite_backend import SqliteQueue,SqliteDataStore
from huey.api import Huey, create_task
tisbackup_root_dir = os.path.abspath(os.path.join(os.path.dirname(__file__)))
tasks_db = os.path.join(tisbackup_root_dir,"tasks.sqlite")
queue = SqliteQueue('tisbackups',tasks_db)
result_store = SqliteDataStore('tisbackups',tasks_db)
huey = Huey(queue,result_store,always_eager=False)