mirror of https://github.com/morpheus65535/bazarr
Switched to Gevent scheduler instead of background threaded.
This commit is contained in:
parent
44dd478c48
commit
dd8072adf8
|
@ -12,7 +12,7 @@ if not args.no_update:
|
||||||
from check_update import check_if_new_update, check_releases
|
from check_update import check_if_new_update, check_releases
|
||||||
else:
|
else:
|
||||||
from check_update import check_releases
|
from check_update import check_releases
|
||||||
from apscheduler.schedulers.background import BackgroundScheduler
|
from apscheduler.schedulers.gevent import GeventScheduler
|
||||||
from apscheduler.triggers.interval import IntervalTrigger
|
from apscheduler.triggers.interval import IntervalTrigger
|
||||||
from apscheduler.triggers.cron import CronTrigger
|
from apscheduler.triggers.cron import CronTrigger
|
||||||
from apscheduler.triggers.date import DateTrigger
|
from apscheduler.triggers.date import DateTrigger
|
||||||
|
@ -30,7 +30,7 @@ class Scheduler:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.__running_tasks = []
|
self.__running_tasks = []
|
||||||
|
|
||||||
self.aps_scheduler = BackgroundScheduler()
|
self.aps_scheduler = GeventScheduler()
|
||||||
|
|
||||||
# task listener
|
# task listener
|
||||||
def task_listener_add(event):
|
def task_listener_add(event):
|
||||||
|
|
Loading…
Reference in New Issue