mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 22:16:37 +00:00
Move SqliteBGTaskHuey
earlier in the file
This commit is contained in:
parent
d4cffc298a
commit
a95b201f0c
@ -126,6 +126,11 @@ class BGTaskHuey(Huey):
|
|||||||
def get_task_wrapper_class(self):
|
def get_task_wrapper_class(self):
|
||||||
return CompatibleTaskWrapper
|
return CompatibleTaskWrapper
|
||||||
|
|
||||||
|
|
||||||
|
class SqliteBGTaskHuey(BGTaskHuey):
|
||||||
|
storage_class = SqliteStorage
|
||||||
|
|
||||||
|
|
||||||
def background(name=None, schedule=None, queue=None, remove_existing_tasks=False, **kwargs):
|
def background(name=None, schedule=None, queue=None, remove_existing_tasks=False, **kwargs):
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django_huey import db_task, db_periodic_task, get_queue
|
from django_huey import db_task, db_periodic_task, get_queue
|
||||||
@ -200,10 +205,6 @@ def background(name=None, schedule=None, queue=None, remove_existing_tasks=False
|
|||||||
return _periodic_decorator if repeats else _decorator
|
return _periodic_decorator if repeats else _decorator
|
||||||
|
|
||||||
|
|
||||||
class SqliteBGTaskHuey(BGTaskHuey):
|
|
||||||
storage_class = SqliteStorage
|
|
||||||
|
|
||||||
|
|
||||||
def original_background(*args, **kwargs):
|
def original_background(*args, **kwargs):
|
||||||
from background_task.tasks import tasks
|
from background_task.tasks import tasks
|
||||||
return tasks.background(*args, **kwargs)
|
return tasks.background(*args, **kwargs)
|
||||||
|
Loading…
Reference in New Issue
Block a user